fixed form button IDs not getting read

This commit is contained in:
2024-02-26 13:22:49 +01:00
parent 998c8cf1c7
commit 3c524e2f27
4 changed files with 26 additions and 14 deletions

View File

@@ -179,7 +179,7 @@ func removeSticky(guildID string, channelID string) {
func getFormManageIdExists(guildID string, id uuid.UUID) bool {
var exists bool
err := db.QueryRow("SELECT EXISTS (SELECT 1 FROM form_buttons WHERE guild_id = $1 AND form_manage_id = $2)", guildID, id).Scan(&exists)
err := db.QueryRow("SELECT EXISTS (SELECT 1 FROM form_buttons WHERE form_manage_id = $1)", id).Scan(&exists)
if err != nil {
log.Println(err)
}