Fix User.login credentials check and flush Redis before tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const { createClient } = require('redis');
|
||||
async function run() {
|
||||
const client = createClient();
|
||||
await client.connect();
|
||||
try {
|
||||
await client.HSET('AuthToken_uuid', 'key', true); // boolean is not string
|
||||
} catch (e) {
|
||||
console.error(e.stack);
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user