Explicitly import URL

With Yarn PnP, URL is seems to not automatically be
part of the global scope.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-09-06 16:32:24 +02:00
parent 241164261e
commit 1f2067288a
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 4 additions and 0 deletions

View file

@ -12,6 +12,7 @@ import {
IsUrl,
ValidateNested,
} from 'class-validator';
import { URL } from 'url';
import { ServerVersion } from '../monitoring/server-status.dto';

View file

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

View file

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

View file

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