This commit is contained in:
syuilo 2018-09-13 01:50:21 +09:00
parent cc55ae3523
commit e29d9652fc
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
}
// Create following
create(follower, followee);
await create(follower, followee);
// Send response
res(await pack(followee._id, user));

View File

@ -57,7 +57,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
}
// Delete following
deleteFollowing(follower, followee);
await deleteFollowing(follower, followee);
// Send response
res(await pack(followee._id, user));