From 4a88cb596815c77630be7d01d40687c49b0560d2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 May 2019 12:58:44 +0900 Subject: [PATCH] rename --- src/models/repositories/user-group.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/repositories/user-group.ts b/src/models/repositories/user-group.ts index dbbe8bf84c..38174ce235 100644 --- a/src/models/repositories/user-group.ts +++ b/src/models/repositories/user-group.ts @@ -21,7 +21,7 @@ export class UserGroupRepository extends Repository { 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',