0
0
This commit is contained in:
syuilo 2019-05-22 12:58:44 +09:00
parent 50d4de19f0
commit 4a88cb5968
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -21,7 +21,7 @@ export class UserGroupRepository extends Repository<UserGroup> {
id: userGroup.id,
createdAt: userGroup.createdAt.toISOString(),
name: userGroup.name,
owner: userGroup.userId,
ownerId: userGroup.userId,
userIds: users.map(x => x.userId)
};
}
@ -49,7 +49,7 @@ export const packedUserGroupSchema = {
optional: bool.false, nullable: bool.false,
description: 'The name of the UserGroup.'
},
owner: {
ownerId: {
type: types.string,
nullable: bool.false, optional: bool.false,
format: 'id',