From dba0426fb50b4d94924a91a6e276964ee50dda7e Mon Sep 17 00:00:00 2001 From: Matt Cavanagh Date: Tue, 26 Sep 2023 22:00:22 +0100 Subject: [PATCH] fix: fixed TS oopsie --- src/database/migrations/Migration20230925183448.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database/migrations/Migration20230925183448.ts b/src/database/migrations/Migration20230925183448.ts index a4b99585..ae825bea 100644 --- a/src/database/migrations/Migration20230925183448.ts +++ b/src/database/migrations/Migration20230925183448.ts @@ -1,11 +1,12 @@ import { Migration } from '@mikro-orm/migrations'; import { AlbionApiService } from '../../albion/services/albion.api.service'; import { AlbionPlayersResponseInterface } from '../../albion/interfaces/albion.api.interfaces'; +import { ConfigService } from '@nestjs/config'; export class Migration20230925183448 extends Migration { async up(): Promise { - const service = new AlbionApiService(); + const service = new AlbionApiService(new ConfigService()); this.addSql('create table `albion_members_entity` (`id` int unsigned not null auto_increment primary key, `created_at` datetime not null, `updated_at` datetime not null, `discord_id` varchar(255) not null, `character_id` varchar(255) not null, `character_name` varchar(255) not null, `manual` varchar(255) not null default false, `manual_created_by_discord_id` varchar(255) null default null, `manual_created_by_discord_name` varchar(255) null default null) default character set utf8mb4 engine = InnoDB;'); this.addSql('alter table `albion_members_entity` add index `albion_members_entity_discord_id_index`(`discord_id`);');