Skip to content

Commit 7906cfd

Browse files
author
Michal Paukert
committed
Rename method
1 parent 9f4a07e commit 7906cfd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cmds/migration/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import yargs from 'yargs';
22
import chalk from 'chalk';
3-
import { getDuplicates, getExecutedSuccessMigrations, getMigrationFilepath, loadMigrationFiles, loadModule, runMigration } from '../../utils/migrationUtils';
3+
import { getDuplicates, getSuccessfullyExecutedMigrations, getMigrationFilepath, loadMigrationFiles, loadModule, runMigration } from '../../utils/migrationUtils';
44
import { fileExists, getFileWithExtension, isAllowedExtension } from '../../utils/fileUtils';
55
import { environmentConfigExists, getEnvironmentsConfig } from '../../utils/environmentUtils';
66
import { createManagementClient } from '../../managementClientFactory';
@@ -177,7 +177,7 @@ const checkForDuplicates = (migrationsToRun: IMigration[]): void => {
177177
};
178178

179179
const skipExecutedMigrations = (migrations: IMigration[], projectId: string): IMigration[] => {
180-
const executedMigrations = getExecutedSuccessMigrations(migrations, projectId);
180+
const executedMigrations = getSuccessfullyExecutedMigrations(migrations, projectId);
181181
const result: IMigration[] = [];
182182

183183
for (const migration of migrations) {

src/utils/migrationUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const loadMigrationFiles = async (): Promise<IMigration[]> => {
167167
return migrations.filter(String);
168168
};
169169

170-
export const getExecutedSuccessMigrations = (migrations: IMigration[], projectId: string): IMigration[] => {
170+
export const getSuccessfullyExecutedMigrations = (migrations: IMigration[], projectId: string): IMigration[] => {
171171
const alreadyExecutedMigrations: IMigration[] = [];
172172

173173
// filter by execution status

0 commit comments

Comments
 (0)