Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Waikkii authored Sep 12, 2021
1 parent 81bd11b commit 68730be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,17 @@ router.get('/api/WSCKUserinfo', async (ctx) => {

router.post('/api/WSCKDelaccount', body(), async (ctx) => {
const body = ctx.request.body;
const waeid = body.wseid;
const user = new User({ waeid });
const wseid = body.wseid;
const user = new User({ wseid });
const data = await user.delWSCKUserByEid();
ctx.body = { data };
});

router.post('/api/updateWSCK/remark', body(), async (ctx) => {
const body = ctx.request.body;
const waeid = body.wseid;
const wseid = body.wseid;
const remark = body.remark;
const user = new User({ waeid, remark });
const user = new User({ wseid, remark });
const data = await user.updateWSCKRemark();
ctx.body = { data };
});
Expand Down

0 comments on commit 68730be

Please sign in to comment.