fix a thing

This commit is contained in:
winter 2023-01-07 15:55:32 +09:00
parent 2ac3338e27
commit 9af9f939f3
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ CrystalGauntlet.endpoints["/rateGJDemon21.php"] = ->(context : HTTP::Server::Con
DATABASE.exec("insert into demon_difficulty_votes (level_id, demon_difficulty) values (?, ?)", level_id, rating)
if config_get("voting.allow_demon_votes").as(Bool | Nil) == false
return "1"
return level_id.to_s
end
vote_count = DATABASE.scalar("select count(*) from demon_difficulty_votes where level_id = ?", level_id).as(Int64)
@ -82,5 +82,5 @@ CrystalGauntlet.endpoints["/rateGJDemon21.php"] = ->(context : HTTP::Server::Con
end
end
return "1"
return level_id.to_s
}