Skip to content

Commit

Permalink
Update incorrect func name.
Browse files Browse the repository at this point in the history
  • Loading branch information
kj415j45 committed Sep 7, 2023
1 parent 2ec50b0 commit 1fe58d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/cleanup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default async function exist(env: Env) {
export default async function cleanup(env: Env) {
const expiry = new Date().setDate(new Date().getDate() - 1);
return env.DB.prepare('DELETE FROM log WHERE endpoint IN ( SELECT DISTINCT endpoint FROM log WHERE timestamp < ? );').bind(expiry).run();
}

0 comments on commit 1fe58d8

Please sign in to comment.