viewing user levels fix

This commit is contained in:
Jill 2023-01-02 17:12:12 +03:00
parent 50c3f00035
commit ef072cf082
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ CrystalGauntlet.endpoints["/getGJLevels21.php"] = ->(body : String): String {
searchQuery = params["str"]? || ""
if searchQuery != ""
if searchQuery != "" && params["type"] != "5"
if searchQuery.to_i?
# we do this to get rid of the initial "unlisted = 0" bit
queryParams = ["levels.id = #{searchQuery.to_i}"]