Swap to using ArrayType

This commit is contained in:
qtchaos 2024-01-01 19:46:46 +02:00
parent 1010eaf71e
commit b2e0841d0b
No known key found for this signature in database
GPG Key ID: 7DA98B2B9EF06A90
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}