diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/formatter/video-format-utils.ts | 2 | ||||
-rw-r--r-- | server/models/video/sql/video/shared/abstract-video-query-builder.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/formatter/video-format-utils.ts b/server/models/video/formatter/video-format-utils.ts index 240619f69..f285db477 100644 --- a/server/models/video/formatter/video-format-utils.ts +++ b/server/models/video/formatter/video-format-utils.ts | |||
@@ -58,7 +58,7 @@ export type VideoFormattingJSONOptions = { | |||
58 | } | 58 | } |
59 | 59 | ||
60 | function guessAdditionalAttributesFromQuery (query: VideosCommonQueryAfterSanitize): VideoFormattingJSONOptions { | 60 | function guessAdditionalAttributesFromQuery (query: VideosCommonQueryAfterSanitize): VideoFormattingJSONOptions { |
61 | if (!query || !query.include) return {} | 61 | if (!query?.include) return {} |
62 | 62 | ||
63 | return { | 63 | return { |
64 | additionalAttributes: { | 64 | additionalAttributes: { |
diff --git a/server/models/video/sql/video/shared/abstract-video-query-builder.ts b/server/models/video/sql/video/shared/abstract-video-query-builder.ts index 3c74b0ea6..f0ce69501 100644 --- a/server/models/video/sql/video/shared/abstract-video-query-builder.ts +++ b/server/models/video/sql/video/shared/abstract-video-query-builder.ts | |||
@@ -302,7 +302,7 @@ export class AbstractVideoQueryBuilder extends AbstractRunQuery { | |||
302 | } | 302 | } |
303 | 303 | ||
304 | protected buildAttributesObject (prefixKey: string, attributeKeys: string[]) { | 304 | protected buildAttributesObject (prefixKey: string, attributeKeys: string[]) { |
305 | const result: { [id: string]: string} = {} | 305 | const result: { [id: string]: string } = {} |
306 | 306 | ||
307 | const prefixValue = prefixKey.replace(/->/g, '.') | 307 | const prefixValue = prefixKey.replace(/->/g, '.') |
308 | 308 | ||