diff --git a/src/frontend-config/frontend-config.dto.ts b/src/frontend-config/frontend-config.dto.ts index 6814acf68..edcdb74c7 100644 --- a/src/frontend-config/frontend-config.dto.ts +++ b/src/frontend-config/frontend-config.dto.ts @@ -12,6 +12,7 @@ import { IsUrl, ValidateNested, } from 'class-validator'; +import { URL } from 'url'; import { ServerVersion } from '../monitoring/server-status.dto'; diff --git a/src/frontend-config/frontend-config.service.ts b/src/frontend-config/frontend-config.service.ts index f66342188..cbee7d21e 100644 --- a/src/frontend-config/frontend-config.service.ts +++ b/src/frontend-config/frontend-config.service.ts @@ -4,6 +4,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import { Inject, Injectable } from '@nestjs/common'; +import { URL } from 'url'; import appConfiguration, { AppConfig } from '../config/app.config'; import authConfiguration, { AuthConfig } from '../config/auth.config'; diff --git a/src/media/backends/s3-backend.ts b/src/media/backends/s3-backend.ts index ca755b9b2..5995075f2 100644 --- a/src/media/backends/s3-backend.ts +++ b/src/media/backends/s3-backend.ts @@ -5,6 +5,7 @@ */ import { Inject, Injectable } from '@nestjs/common'; import { Client } from 'minio'; +import { URL } from 'url'; import mediaConfiguration, { MediaConfig } from '../../config/media.config'; import { MediaBackendError } from '../../errors/errors'; diff --git a/src/media/backends/webdav-backend.ts b/src/media/backends/webdav-backend.ts index 25a7a6e6c..78b51722e 100644 --- a/src/media/backends/webdav-backend.ts +++ b/src/media/backends/webdav-backend.ts @@ -5,6 +5,7 @@ */ import { Inject, Injectable } from '@nestjs/common'; import fetch, { Response } from 'node-fetch'; +import { URL } from 'url'; import mediaConfiguration, { MediaConfig } from '../../config/media.config'; import { MediaBackendError } from '../../errors/errors';