Skip to content

Commit d622c61

Browse files
v0eakwillbouch
andauthored
chore(medusa): add metadata field to AdminCreateInvite (#13469)
Adds the possiblity to pass metadata fields when creating invites through API route Co-authored-by: William Bouchard <46496014+willbouch@users.noreply.github.com>
1 parent 9b65078 commit d622c61

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/nine-meals-hope.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/medusa": patch
3+
---
4+
5+
chore(medusa): add metadata field to AdminCreateInvite

packages/medusa/src/api/admin/invites/validators.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export type AdminCreateInviteType = z.infer<typeof AdminCreateInvite>
3939
export const AdminCreateInvite = z
4040
.object({
4141
email: z.string(),
42+
metadata: z.record(z.unknown()).nullish(),
4243
})
4344
.strict()
4445

0 commit comments

Comments
 (0)