From 3e776a505dd040e6575c8aa663d33f0b7a36749b Mon Sep 17 00:00:00 2001 From: ingalls Date: Wed, 16 Oct 2024 13:12:24 -0600 Subject: [PATCH] Fix build errors --- api/lib/control/video-service.ts | 6 +++--- api/lib/schema.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/lib/control/video-service.ts b/api/lib/control/video-service.ts index cc03ac435..2b48c2c05 100644 --- a/api/lib/control/video-service.ts +++ b/api/lib/control/video-service.ts @@ -148,9 +148,9 @@ export default class VideoServiceControl { return { configured: true, - url: video.value || '', - username: user.value || '', - password: pass.value || '', + url: typeof video.value === 'string' ? video.value : '', + username: typeof user.value === 'string' ? user.value : '', + password: typeof pass.value === 'string' ? pass.value : '' } } diff --git a/api/lib/schema.ts b/api/lib/schema.ts index 5c43bc30e..132981576 100644 --- a/api/lib/schema.ts +++ b/api/lib/schema.ts @@ -276,7 +276,7 @@ export const LayerAlert = pgTable('layer_alerts', { export const Setting = pgTable('settings', { key: text('key').primaryKey(), - value: text('value').notNull().default('') + value: json('value').notNull().default('') }); export const Server = pgTable('server', {