Skip to content

Commit

Permalink
don't queue dump if generate=false
Browse files Browse the repository at this point in the history
  • Loading branch information
mchangrh committed Oct 24, 2021
1 parent 6bcc4cd commit 6be0343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/dumpDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export async function redirectLink(req: Request, res: Response): Promise<void> {
res.sendStatus(404);
}

await queueDump();
if (req.query.generate !== "false") await queueDump();
}

function updateQueueTime(): void {
Expand Down

0 comments on commit 6be0343

Please sign in to comment.