修复task_before出错任务中断

This commit is contained in:
hanhh
2021-07-12 23:18:17 +08:00
parent dd424237e2
commit cad1d86caf
5 changed files with 62 additions and 26 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export default ({ app }: { app: Application }) => {
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
app.use(
jwt({ secret: config.secret as string, algorithms: ['HS384'] }).unless({
path: ['/api/login'],
path: ['/api/login', '/api/crons/status'],
}),
);
app.use((req, res, next) => {