fix type stuff

This commit is contained in:
Siddharth Singh 2024-07-06 18:18:38 +05:30
parent 3495092eff
commit 102398967e
No known key found for this signature in database

View file

@ -13,13 +13,13 @@ export class DittoPostgres {
// deno-lint-ignore require-await
static async getInstance(): Promise<Kysely<DittoTables>> {
if (!this.postgres) {
this.postgres = postgres(Conf.databaseUrl, { max: Conf.pg.poolSize }) as any;
this.postgres = postgres(Conf.databaseUrl, { max: Conf.pg.poolSize });
}
if (!this.db) {
this.db = new Kysely({
dialect: new PostgresJSDialect({
postgres: this.postgres,
postgres: this.postgres as any,
}),
log: KyselyLogger,
});