Skip to content

Commit

Permalink
fix(sql): import date-fns
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Sep 17, 2024
1 parent 58753c8 commit bbb981b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sql/src/cli/migration-create-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class MigrationCreateController extends BaseCommand implements Command {
let migrationName = '';
const date = new Date;

const { format } = require('date-fns');
const { format } = await import('date-fns');
for (let i = 1; i < 100; i++) {
migrationName = format(date, 'yyyyMMdd-HHmm');
if (i > 1) migrationName += '_' + i;
Expand Down

0 comments on commit bbb981b

Please sign in to comment.