1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-05 05:40:06 +00:00

build: server/api dependency update

This commit is contained in:
Trevor Moody
2025-09-19 14:06:50 +01:00
parent c422e7f02e
commit a5c99971cc
3 changed files with 987 additions and 754 deletions

View File

@@ -76,7 +76,7 @@ groupSchema.post('save', function (group: IGroup, next: Function) {
})
// pre remove hook to remove all references of group from users
groupSchema.pre('remove', async function () {
groupSchema.pre('remove', async function (this: IGroupDocument) {
const userIds = this.users
await Promise.all(
userIds.map(async (userId) => {