fix migration not clearing users cache, causing bug with old cached users having wrong property names

jschan
Thomas Lynch 2 years ago
parent b9900bf466
commit 4685fd2212
Signed by: fatchan
GPG Key ID: 112884AA57DF40B1
  1. 2
      migrations/0.4.0.js

@ -199,4 +199,6 @@ module.exports = async(db, redis) => {
await redis.deletePattern('board:*');
console.log('Deleting all sessions from redis (logs all users out)');
await redis.deletePattern('sess:*');
console.log('Deleting users cache');
await redis.deletePattern('users:*');
};

Loading…
Cancel
Save