mirror of
https://github.com/docmost/docmost.git
synced 2025-11-11 07:52:07 +10:00
handle empty invitation
This commit is contained in:
@ -145,6 +145,10 @@ export class WorkspaceInvitationService {
|
|||||||
groupIds: validGroups?.map((group: Partial<Group>) => group.id),
|
groupIds: validGroups?.map((group: Partial<Group>) => group.id),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
if (invitesToInsert.length < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
invites = await trx
|
invites = await trx
|
||||||
.insertInto('workspaceInvitations')
|
.insertInto('workspaceInvitations')
|
||||||
.values(invitesToInsert)
|
.values(invitesToInsert)
|
||||||
|
|||||||
Reference in New Issue
Block a user