mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 03:41:38 +01:00
moving to postgres, part 1
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import pocketbase from "db/connection";
|
||||
import { RedisClient } from "bun";
|
||||
import logger from "lib/logger";
|
||||
|
||||
export async function connectionCheck() {
|
||||
let pbstatus = false;
|
||||
try {
|
||||
await pocketbase.health.check().then(a => a.code === 200);
|
||||
pbstatus = true;
|
||||
} catch { };
|
||||
const tempclient = new RedisClient(undefined, {
|
||||
|
||||
Reference in New Issue
Block a user