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'; |
||||
|
||||
const { Accounts } = require(__dirname+'/../../db/') |
||||
, redis = require(__dirname+'/../../redis.js'); |
||||
|
||||
module.exports = async (username) => { |
||||
|
||||
//this definitely needs to be its own file (v:
|
||||
await Accounts.deleteOne(username); |
||||
await Promise.all([ |
||||
Accounts.deleteOne(username), |
||||
redis.deletePattern(`sess:*:${username}`), |
||||
]); |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue