From b2e0841d0b4f5f58ebbf6092ab5a762a39aad56f Mon Sep 17 00:00:00 2001 From: qtchaos <72168435+qtchaos@users.noreply.github.com> Date: Mon, 1 Jan 2024 19:46:46 +0200 Subject: [PATCH] Swap to using ArrayType --- src/db/models/UserSettings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/models/UserSettings.ts b/src/db/models/UserSettings.ts index f08caa0..14911b4 100644 --- a/src/db/models/UserSettings.ts +++ b/src/db/models/UserSettings.ts @@ -1,4 +1,4 @@ -import { Entity, PrimaryKey, Property } from '@mikro-orm/core'; +import { ArrayType, Entity, PrimaryKey, Property } from '@mikro-orm/core'; @Entity({ tableName: 'user_settings' }) export class UserSettings { @@ -14,7 +14,7 @@ export class UserSettings { @Property({ name: 'default_subtitle_language', nullable: true }) defaultSubtitleLanguage?: string | null; - @Property({ name: 'proxy_urls', nullable: true, type: 'text[]' }) + @Property({ name: 'proxy_urls', type: ArrayType, nullable: true }) proxyUrls?: string[] | null; }