blob: 665c14f438af62b8f59c50fbb9a49f6e8a87218c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import DBController from "../db/DBController.ts";
import * as log from "https://deno.land/std/log/mod.ts";
const controller = new DBController();
export const isSetup = async (): Promise<boolean> => {
try {
const users = await controller.query("SELECT id FROM users");
return users.length > 0
} catch (e) {
log.error(e);
return false;
}
}
|