From 546d35d71977d8e61d40e1f02dee78c063f99e45 Mon Sep 17 00:00:00 2001 From: Moon Date: Thu, 27 Jul 2023 01:58:47 +0000 Subject: [PATCH] close db --- main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.ts b/main.ts index 3237306..c66126f 100644 --- a/main.ts +++ b/main.ts @@ -55,6 +55,8 @@ else if (command === "get" && Deno.args.length == 2) { } if (newLastSeenAt != lastSeenAt) db.query("update channel set last_seen_at = ? where id = ?", [newLastSeenAt, id]); + + db.close(); } } else {