Added id to the auth token

Resolved #1
This commit is contained in:
2021-03-07 06:41:01 +11:00
parent 2e024f71c3
commit aacd64a769
8 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ const { tokens } = require('../database/models');
module.exports = (token) => {
tokens.destroy({
where: {
token
token: token || ''
}
});
}