feat: run tasks at startup
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export default defineNitroPlugin(async (_nitro) => {
|
||||
// all tasks we should run on server boot
|
||||
await Promise.all([
|
||||
runTask("cleanup:invitations"),
|
||||
runTask("cleanup:sessions"),
|
||||
]);
|
||||
});
|
||||
Reference in New Issue
Block a user