ADD: metadata when user created
This commit is contained in:
@@ -59,6 +59,7 @@ router.post('/create', async function(req, res) {
|
||||
|
||||
let u = new User(redis);
|
||||
await u.create();
|
||||
await u.saveMetadata({ partnerid: req.body.partnerid, accounttype: req.body.accounttype, created_at: new Date().toISOString() });
|
||||
res.send({ login: u.getLogin(), password: u.getPassword() });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user