Skip to content

Commit

Permalink
fix: database intitialisation of storage service
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Nov 7, 2024
1 parent 234770a commit a6e79d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/server-storage/src/database/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import type { DataSourceOptions } from 'typeorm';
import { adjustFilePath, readDataSourceOptionsFromEnv } from 'typeorm-extension';
import { readDataSourceOptionsFromEnv } from 'typeorm-extension';
import { EnvironmentName, useEnv } from '../config';
import { BucketEntity, BucketFileEntity } from '../domains';

Expand All @@ -25,11 +25,11 @@ export async function extendDataSourceOptions(options: DataSourceOptions): Promi
};

const migrations: string[] = [];
const migration = await adjustFilePath(
`src/database/migrations/${options.type}/*.{ts,js}`,
);
// const migration = await adjustFilePath(
// `src/database/migrations/${options.type}/*.{ts,js}`,
// );

migrations.push(migration);
// migrations.push(migration);

Object.assign(options, {
migrations,
Expand Down

0 comments on commit a6e79d9

Please sign in to comment.