Skip to content

Commit

Permalink
fix: document added
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed Nov 25, 2023
1 parent 3654a8a commit 80112ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/data-store/src/migrations/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { DataStoreMigrations } from './generic'
export { createQueryRunnerAdapter } from './postgres/utils'
4 changes: 3 additions & 1 deletion packages/ssi-sdk-core/src/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ export const flattenArray = <T>(args: { items: Array<T | Array<T>> }): Array<T>

export const flattenMigrations = <T>(args: { migrations: Array<T | Array<T>> }): Array<T> => args.migrations.flat() as Array<T>

// It should accept queryRunner from the typeorm
/**
* It should accept queryRunner from the typeorm
*/
export const enablePostgresUuidExtension = async (queryRunner: any) => {
if (!queryRunner.query) {
throw new Error("You should pass a QueryRunner object to this function.")
Expand Down

0 comments on commit 80112ec

Please sign in to comment.