Updated dependencies

This commit is contained in:
2023-03-19 02:52:44 +11:00
parent cf4c8a0f99
commit c5360a70d6
3 changed files with 1399 additions and 1409 deletions
+1
View File
@@ -1,3 +1,4 @@
FROM node:18-bullseye-slim
WORKDIR "/app"
COPY package*.json ./
+1398 -1398
View File
File diff suppressed because it is too large Load Diff
-11
View File
@@ -36,17 +36,6 @@ app.get('*', (req, res) => {
//startup
server.listen(process.env.WEB_PORT || 3200, async (err) => {
//BUGFIX: clear out old refresh tokens
const { Op } = require('sequelize');
const { tokens } = require('./database/models');
tokens.destroy({
where: {
createdAt: {
[Op.lt]: new Date(new Date().setDate(new Date().getDate() - 30))
}
}
});
await database.sync();
console.log(`listening to localhost:${process.env.WEB_PORT || 3200}`);
});