mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: email invites frontend
This commit is contained in:
parent
79ddfb1ce1
commit
a6e81cb122
7 changed files with 168 additions and 11 deletions
|
|
@ -42,3 +42,16 @@ export async function validateInviteCode(org_id: any, invite_code: string) {
|
|||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
|
||||
export async function inviteBatchUsers(
|
||||
org_id: any,
|
||||
emails: string,
|
||||
invite_code_uuid: string
|
||||
) {
|
||||
const result = await fetch(
|
||||
`${getAPIUrl()}orgs/${org_id}/invites/users/batch?emails=${emails}&invite_code_uuid=${invite_code_uuid}`,
|
||||
RequestBody('POST', null, null)
|
||||
)
|
||||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue