mirror of
https://github.com/docmost/docmost.git
synced 2025-11-15 22:31:08 +10:00
* Fixes
* use lower case db column names * fix signup workspaceId
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { KyselyModule } from 'nestjs-kysely';
|
||||
import { EnvironmentService } from '../integrations/environment/environment.service';
|
||||
import { LogEvent, PostgresDialect } from 'kysely';
|
||||
import { CamelCasePlugin, LogEvent, PostgresDialect } from 'kysely';
|
||||
import { Pool } from 'pg';
|
||||
import { GroupRepo } from '@docmost/db/repos/group/group.repo';
|
||||
import { WorkspaceRepo } from '@docmost/db/repos/workspace/workspace.repo';
|
||||
@ -25,8 +25,9 @@ import { AttachmentRepo } from './repos/attachment/attachment.repo';
|
||||
dialect: new PostgresDialect({
|
||||
pool: new Pool({
|
||||
connectionString: environmentService.getDatabaseURL(),
|
||||
}) as any,
|
||||
}),
|
||||
}),
|
||||
plugins: [new CamelCasePlugin()],
|
||||
log: (event: LogEvent) => {
|
||||
if (environmentService.getEnv() !== 'development') return;
|
||||
if (event.level === 'query') {
|
||||
|
||||
Reference in New Issue
Block a user