Fix User.login credentials check and flush Redis before tests

This commit is contained in:
2026-07-22 22:37:45 -04:00
parent e910a492ba
commit f76d93d840
6 changed files with 47 additions and 7868 deletions
+9
View File
@@ -0,0 +1,9 @@
const {setUpTable} = require('model-redis');
const redis = require('redis');
const client = redis.createClient();
const Table = setUpTable(client, 'prefix_');
Table._keyMap = { token: { type: 'string' } };
Table._key = 'token';
Table.register(Table);
const inst = new Table({token: '123'});
console.log(typeof inst.del);