1
0
This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions
@@ -11,7 +11,7 @@ export class UserGroupRepository extends Repository<UserGroup> {
const userGroup = typeof src === 'object' ? src : await this.findOneOrFail(src);
const users = await UserGroupJoinings.find({
userGroupId: userGroup.id
userGroupId: userGroup.id,
});
return {
@@ -19,7 +19,7 @@ export class UserGroupRepository extends Repository<UserGroup> {
createdAt: userGroup.createdAt.toISOString(),
name: userGroup.name,
ownerId: userGroup.userId,
userIds: users.map(x => x.userId)
userIds: users.map(x => x.userId),
};
}
}
@@ -55,7 +55,7 @@ export const packedUserGroupSchema = {
type: 'string' as const,
nullable: false as const, optional: false as const,
format: 'id',
}
},
},
},
};