mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
deno fmt
This commit is contained in:
parent
f7e9cd235c
commit
8aaba6c19d
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { Kysely, PostgresDialect } from 'kysely';
|
import { Kysely, PostgresDialect } from 'kysely';
|
||||||
import * as pg from "node-pg";
|
import * as pg from 'node-pg';
|
||||||
import { Conf } from '@/config.ts';
|
import { Conf } from '@/config.ts';
|
||||||
import { DittoTables } from '@/db/DittoTables.ts';
|
import { DittoTables } from '@/db/DittoTables.ts';
|
||||||
import { KyselyLogger } from '@/db/KyselyLogger.ts';
|
import { KyselyLogger } from '@/db/KyselyLogger.ts';
|
||||||
|
|
@ -12,8 +12,8 @@ export class DittoPostgres {
|
||||||
this.db = new Kysely({
|
this.db = new Kysely({
|
||||||
dialect: new PostgresDialect({
|
dialect: new PostgresDialect({
|
||||||
pool: new pg.default.Pool({
|
pool: new pg.default.Pool({
|
||||||
connectionString: Conf.databaseUrl
|
connectionString: Conf.databaseUrl,
|
||||||
})
|
}),
|
||||||
}),
|
}),
|
||||||
log: KyselyLogger,
|
log: KyselyLogger,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue