First Commit. Duplicate bunext-sqlite preset

This commit is contained in:
2026-10-18 16:47:11 +01:00
commit 81e4a8aecc
718 changed files with 41695 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import bunext from "@moduletrace/bunext";
import BunSQLite from "@moduletrace/bun-sqlite";
export default async function heartbeat() {
const db_alive = await BunSQLite.sql({
sql: `SELECT 1 AS alive`,
});
bunext.bunextLog.info(
`Cron: database heartbeat ${db_alive.success ? "ok" : "failed"}`,
);
return db_alive;
}