Add some tests and some fixes

This commit is contained in:
syuilo 2018-10-16 08:54:36 +09:00
parent 88664486af
commit 99da4f9839
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 69 additions and 10 deletions

View file

@ -132,6 +132,12 @@ export default async (ctx: Koa.Context) => {
updateUserStats(account, true);
// Response
ctx.body = await pack(account);
const res = await pack(account, account, {
detail: true,
includeSecrets: true
});
res.token = secret;
ctx.body = res;
};