From fc2bf75700bb309811c8c9fcb5a636e6f6094b6c Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Sat, 9 Nov 2024 21:03:55 -0300 Subject: [PATCH] Fix slug available check --- .../backend/interactions/vanilla/GalleryOfDreamsCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/interactions/vanilla/GalleryOfDreamsCommand.kt b/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/interactions/vanilla/GalleryOfDreamsCommand.kt index 25ab4b4..6f04321 100644 --- a/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/interactions/vanilla/GalleryOfDreamsCommand.kt +++ b/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/interactions/vanilla/GalleryOfDreamsCommand.kt @@ -342,7 +342,7 @@ class GalleryOfDreamsCommand(val loritta: GalleryOfDreamsBackend) : SlashCommand val slugIsAvailable = FanArtArtists.selectAll().where { FanArtArtists.slug eq fanArtArtistSlug - }.count() != 0L + }.count() == 0L val fanArtArtist = FanArtArtists.insert { it[FanArtArtists.name] = artistName