mirror of
https://github.com/docmost/docmost.git
synced 2025-11-10 03:32:06 +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),
|
||||
}));
|
||||
|
||||
if (invitesToInsert.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
invites = await trx
|
||||
.insertInto('workspaceInvitations')
|
||||
.values(invitesToInsert)
|
||||
|
||||
Reference in New Issue
Block a user