Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 16, 2024
1 parent 1d4fd77 commit 3e776a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/lib/control/video-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ''
}
}

Expand Down
2 changes: 1 addition & 1 deletion api/lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 3e776a5

Please sign in to comment.