Merge branch 'nestjs-migration' of https://github.com/manuel-rw/jellyfin-discord-music-bot into nestjs-migration

This commit is contained in:
Manuel Ruwe 2022-12-18 19:21:36 +01:00
commit fdf190c2b5
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export class DiscordMessageService {
text: `${date}`,
});
if (description !== undefined && description.length > 0) {
if (!description && description.length >= 1) {
embedBuilder = embedBuilder.setDescription(description);
}

View File

@ -61,7 +61,7 @@ export class JellyfinService {
}
destroy() {
if (this.api === undefined) {
if (!this.api) {
this.logger.warn(
'Jellyfin Api Client was unexpectitly undefined. Graceful destroy has failed',
);

View File

@ -64,7 +64,7 @@ export class PlayItemCommand
),
);
if (parsedItems.length < 1) {
if (parsedItems.length === 0) {
return {
embeds: [
this.discordMessageService.buildErrorMessage({