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

build: axios package dependency changes. Missing type added in Group.ts

This commit is contained in:
Trevor Moody
2025-09-16 15:01:11 +01:00
parent 1c4f5fc421
commit 2f5421600e
4 changed files with 32 additions and 16 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) => {