From 21f01aa08bbaba5b96338d3e2e4a2a792d82d93e Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Sun, 19 Nov 2023 20:11:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20build=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clients/jellyfin/jellyfin.websocket.service.ts | 2 +- src/commands/disconnect.command.ts | 2 +- src/commands/help.command.ts | 2 +- src/commands/next.command.ts | 2 +- src/commands/pause.command.ts | 2 +- src/commands/play/play.comands.ts | 2 +- src/commands/playlist/playlist.command.ts | 2 +- src/commands/previous.command.ts | 2 +- src/commands/random/random.command.ts | 2 +- src/commands/stop.command.ts | 2 +- src/commands/summon.command.ts | 2 +- src/commands/volume/volume.command.ts | 4 ++-- src/models/search/AlbumSearchItem.ts | 2 +- src/models/search/PlaylistSearchItem.ts | 4 ++-- src/models/search/SearchItem.ts | 2 +- 15 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/clients/jellyfin/jellyfin.websocket.service.ts b/src/clients/jellyfin/jellyfin.websocket.service.ts index 995e89a..0b68ac9 100644 --- a/src/clients/jellyfin/jellyfin.websocket.service.ts +++ b/src/clients/jellyfin/jellyfin.websocket.service.ts @@ -6,7 +6,7 @@ import { import { Injectable, Logger, OnModuleDestroy } from '@nestjs/common'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { Cron } from '@nestjs/schedule'; -import { flatMapTrackItems } from 'src/utils/trackConverter'; +import { flatMapTrackItems } from '../../utils/trackConverter'; import { WebSocket } from 'ws'; diff --git a/src/commands/disconnect.command.ts b/src/commands/disconnect.command.ts index eef3bb7..4ce247d 100644 --- a/src/commands/disconnect.command.ts +++ b/src/commands/disconnect.command.ts @@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; import { DiscordVoiceService } from '../clients/discord/discord.voice.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; import { PlaybackService } from 'src/playback/playback.service'; @Injectable() diff --git a/src/commands/help.command.ts b/src/commands/help.command.ts index 5d525f1..d00f3ce 100644 --- a/src/commands/help.command.ts +++ b/src/commands/help.command.ts @@ -5,7 +5,7 @@ import { Injectable } from '@nestjs/common'; import { CommandInteraction } from 'discord.js'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; @Injectable() @Command({ diff --git a/src/commands/next.command.ts b/src/commands/next.command.ts index bf99f64..8aed9ba 100644 --- a/src/commands/next.command.ts +++ b/src/commands/next.command.ts @@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js'; import { PlaybackService } from '../playback/playback.service'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; @Command({ name: 'next', diff --git a/src/commands/pause.command.ts b/src/commands/pause.command.ts index 86bf391..9ffed38 100644 --- a/src/commands/pause.command.ts +++ b/src/commands/pause.command.ts @@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; import { DiscordVoiceService } from '../clients/discord/discord.voice.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; @Injectable() @Command({ diff --git a/src/commands/play/play.comands.ts b/src/commands/play/play.comands.ts index 97e7842..fd429ee 100644 --- a/src/commands/play/play.comands.ts +++ b/src/commands/play/play.comands.ts @@ -27,7 +27,7 @@ import { SearchItem } from '../../models/search/SearchItem'; import { PlaybackService } from '../../playback/playback.service'; import { formatMillisecondsAsHumanReadable } from '../../utils/timeUtils'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../../utils/environment'; import { PlayCommandParams, SearchType } from './play.params.ts'; @Injectable() diff --git a/src/commands/playlist/playlist.command.ts b/src/commands/playlist/playlist.command.ts index 5a66e8d..739d02f 100644 --- a/src/commands/playlist/playlist.command.ts +++ b/src/commands/playlist/playlist.command.ts @@ -30,7 +30,7 @@ import { import { Interval } from '@nestjs/schedule'; import { lightFormat } from 'date-fns'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../../utils/environment'; import { PlaylistInteractionCollector } from './playlist.interaction-collector'; import { PlaylistCommandParams } from './playlist.params'; import { PlaylistTempCommandData } from './playlist.types'; diff --git a/src/commands/previous.command.ts b/src/commands/previous.command.ts index 071271e..d82364e 100644 --- a/src/commands/previous.command.ts +++ b/src/commands/previous.command.ts @@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js'; import { PlaybackService } from '../playback/playback.service'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; @Injectable() @Command({ diff --git a/src/commands/random/random.command.ts b/src/commands/random/random.command.ts index 1958420..6684eef 100644 --- a/src/commands/random/random.command.ts +++ b/src/commands/random/random.command.ts @@ -12,7 +12,7 @@ import { JellyfinSearchService } from 'src/clients/jellyfin/jellyfin.search.serv import { SearchItem } from 'src/models/search/SearchItem'; import { PlaybackService } from 'src/playback/playback.service'; import { RandomCommandParams } from './random.params'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../../utils/environment'; @Command({ name: 'random', diff --git a/src/commands/stop.command.ts b/src/commands/stop.command.ts index 96b8f62..ac7eaab 100644 --- a/src/commands/stop.command.ts +++ b/src/commands/stop.command.ts @@ -7,7 +7,7 @@ import { CommandInteraction } from 'discord.js'; import { PlaybackService } from '../playback/playback.service'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; import { DiscordVoiceService } from '../clients/discord/discord.voice.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; @Command({ name: 'stop', diff --git a/src/commands/summon.command.ts b/src/commands/summon.command.ts index b6a698a..1fd36ac 100644 --- a/src/commands/summon.command.ts +++ b/src/commands/summon.command.ts @@ -6,7 +6,7 @@ import { CommandInteraction, GuildMember } from 'discord.js'; import { DiscordMessageService } from '../clients/discord/discord.message.service'; import { DiscordVoiceService } from '../clients/discord/discord.voice.service'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../utils/environment'; @Injectable() @Command({ diff --git a/src/commands/volume/volume.command.ts b/src/commands/volume/volume.command.ts index 7ddcb9f..a6d83c4 100644 --- a/src/commands/volume/volume.command.ts +++ b/src/commands/volume/volume.command.ts @@ -8,9 +8,9 @@ import { CommandInteraction } from 'discord.js'; import { DiscordMessageService } from 'src/clients/discord/discord.message.service'; import { DiscordVoiceService } from 'src/clients/discord/discord.voice.service'; import { PlaybackService } from 'src/playback/playback.service'; -import { sleepAsync } from 'src/utils/timeUtils'; +import { sleepAsync } from '../../utils/timeUtils'; import { VolumeCommandParams } from './volume.params'; -import { defaultMemberPermissions } from 'src/utils/environment'; +import { defaultMemberPermissions } from '../../utils/environment'; @Injectable() @Command({ diff --git a/src/models/search/AlbumSearchItem.ts b/src/models/search/AlbumSearchItem.ts index e9a6fbf..a6d7fb8 100644 --- a/src/models/search/AlbumSearchItem.ts +++ b/src/models/search/AlbumSearchItem.ts @@ -4,7 +4,7 @@ import { Track } from '../music/Track'; import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service'; import { SearchItem } from './SearchItem'; -import { trimStringToFixedLength } from 'src/utils/stringUtils/stringUtils'; +import { trimStringToFixedLength } from '../../utils/stringUtils/stringUtils'; export class AlbumSearchItem extends SearchItem { override toString(): string { diff --git a/src/models/search/PlaylistSearchItem.ts b/src/models/search/PlaylistSearchItem.ts index 960833e..8a6f1f2 100644 --- a/src/models/search/PlaylistSearchItem.ts +++ b/src/models/search/PlaylistSearchItem.ts @@ -4,8 +4,8 @@ import { Track } from '../music/Track'; import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service'; import { SearchItem } from './SearchItem'; -import { flatMapTrackItems } from 'src/utils/trackConverter'; -import { trimStringToFixedLength } from 'src/utils/stringUtils/stringUtils'; +import { flatMapTrackItems } from '../../utils/trackConverter'; +import { trimStringToFixedLength } from '../../utils/stringUtils/stringUtils'; export class PlaylistSearchItem extends SearchItem { override toString(): string { diff --git a/src/models/search/SearchItem.ts b/src/models/search/SearchItem.ts index b7f1836..4e3f608 100644 --- a/src/models/search/SearchItem.ts +++ b/src/models/search/SearchItem.ts @@ -6,7 +6,7 @@ import { z } from 'zod'; import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service'; import { Track } from '../music/Track'; -import { trimStringToFixedLength } from 'src/utils/stringUtils/stringUtils'; +import { trimStringToFixedLength } from '../../utils/stringUtils/stringUtils'; export class SearchItem { constructor(