fix(medusa): Accept invite should not require first/last name (#5279)
**What** Makes the first and last name optional when accepting an invite since those column can be nullable
This commit is contained in:
1 parent
90e24c593f
commit
f9264c479e
2 files changed
+13
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(medusa): Accept invite should not require first/last name
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
import { IsNotEmpty, IsString, ValidateNested } from "class-validator"
|
import {
|
||||||
|
IsNotEmpty,
|
||||||
|
IsOptional,
|
||||||
|
IsString,
|
||||||
|
ValidateNested,
|
||||||
|
} from "class-validator"
|
||||||
|
|
||||||
import InviteService from "../../../../services/invite"
|
import InviteService from "../../../../services/invite"
|
||||||
import { Type } from "class-transformer"
|
import { Type } from "class-transformer"
|
||||||
@@ -92,9 +97,11 @@ export default async (req, res) => {
|
|||||||
|
|
||||||
export class AdminPostInvitesInviteAcceptUserReq {
|
export class AdminPostInvitesInviteAcceptUserReq {
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@IsOptional()
|
||||||
first_name: string
|
first_name: string
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
|
@IsOptional()
|
||||||
last_name: string
|
last_name: string
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
|
|||||||
Reference in new issue
Block a user