mirror of https://gitgud.io/fatchan/jschan.git
parent
5bdc214716
commit
6ecb519f77
1 changed files with 5 additions and 2 deletions
@ -1,10 +1,13 @@ |
|||||||
'use strict'; |
'use strict'; |
||||||
|
|
||||||
const { Accounts } = require(__dirname+'/../../db/') |
const { Accounts } = require(__dirname+'/../../db/') |
||||||
|
, redis = require(__dirname+'/../../redis.js'); |
||||||
|
|
||||||
module.exports = async (username) => { |
module.exports = async (username) => { |
||||||
|
|
||||||
//this definitely needs to be its own file (v:
|
await Promise.all([ |
||||||
await Accounts.deleteOne(username); |
Accounts.deleteOne(username), |
||||||
|
redis.deletePattern(`sess:*:${username}`), |
||||||
|
]); |
||||||
|
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue