[API] Include detailed user information of blocking API responses

This commit is contained in:
syuilo 2018-10-31 11:24:36 +09:00
parent 29b000e03c
commit e23b13ec7f
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 6 additions and 2 deletions

View file

@ -71,5 +71,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
await create(blocker, blockee);
// Send response
res(await pack(blockee._id, user));
res(await pack(blockee._id, user, {
detail: true
}));
});

View file

@ -71,5 +71,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
await deleteBlocking(blocker, blockee);
// Send response
res(await pack(blockee._id, user));
res(await pack(blockee._id, user, {
detail: true
}));
});