Added relations to redis ORM

This commit is contained in:
2024-08-13 15:18:47 -04:00
parent 2a5ca3664a
commit b27e1b1617
20 changed files with 240 additions and 150 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
'use strict';
const {User} = require('../models/user');
const {AuthToken} = require('../models/token');
const Table = require('../models');
const {User, AuthToken} = Table.models;
class Auth{
@@ -35,6 +35,7 @@ class Auth{
throw this.errors.login();
}catch(error){
console.log('check error', error);
throw this.errors.login();
}
}