Add some tests and some fixes
This commit is contained in:
parent
88664486af
commit
99da4f9839
3 changed files with 69 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue