diff --git a/package.json b/package.json index 468a249..7b3066a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/lib", - "version": "0.9.41", + "version": "0.9.42", "description": "The framework library that lifts up your code.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/orm/migrations/DatabaseMigrator.ts b/src/orm/migrations/DatabaseMigrator.ts index 8792f97..37759b1 100644 --- a/src/orm/migrations/DatabaseMigrator.ts +++ b/src/orm/migrations/DatabaseMigrator.ts @@ -140,12 +140,13 @@ export class DatabaseMigrator extends Migrator { * @protected */ protected async filterAppliedMigrations(identifiers: string[]): Promise { - const existing = await this.builder() + const existing = (await this.builder() .connection('default') .select('identifier') .from('migrations') .whereIn('identifier', identifiers) .get() + .collect()) .pluck('identifier') return identifiers.filter(id => !existing.includes(id))