Updated dependencies
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
FROM node:18-bullseye-slim
|
FROM node:18-bullseye-slim
|
||||||
WORKDIR "/app"
|
WORKDIR "/app"
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|||||||
Generated
+1398
-1398
File diff suppressed because it is too large
Load Diff
@@ -36,17 +36,6 @@ app.get('*', (req, res) => {
|
|||||||
|
|
||||||
//startup
|
//startup
|
||||||
server.listen(process.env.WEB_PORT || 3200, async (err) => {
|
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();
|
await database.sync();
|
||||||
console.log(`listening to localhost:${process.env.WEB_PORT || 3200}`);
|
console.log(`listening to localhost:${process.env.WEB_PORT || 3200}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user