keryx 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/initializers/db.ts +2 -2
- package/package.json +1 -1
package/initializers/db.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class DB extends Initializer {
|
|
|
31
31
|
async initialize() {
|
|
32
32
|
const dbContainer = {} as {
|
|
33
33
|
db: ReturnType<typeof drizzle>;
|
|
34
|
-
pool: Pool
|
|
34
|
+
pool: InstanceType<typeof Pool>;
|
|
35
35
|
};
|
|
36
36
|
return Object.assign(
|
|
37
37
|
{
|
|
@@ -104,7 +104,7 @@ export class DB extends Initializer {
|
|
|
104
104
|
const migrationConfig = {
|
|
105
105
|
schema: path.join("models", "*"),
|
|
106
106
|
dbCredentials: {
|
|
107
|
-
|
|
107
|
+
url: config.database.connectionString,
|
|
108
108
|
},
|
|
109
109
|
out: path.join("drizzle"),
|
|
110
110
|
} satisfies DrizzleMigrateConfig;
|