This one too
This commit is contained in:
parent
f6370386b4
commit
663c63530d
@ -110,7 +110,7 @@ let addAchievement connStr (did : uint64) (achievement : string) =
|
||||
[ ( "did" , Sql.string (string did) )
|
||||
( "symbol", Sql.string achievement ) ]
|
||||
|> Sql.query """
|
||||
WITH ach AS (SELECT id FROM achievement WHERE symbol = @symbol),
|
||||
WITH ach AS (SELECT id FROM achievement WHERE symbol = cast(@symbol AS achievement_symbol_enum)),
|
||||
usr AS (SELECT id FROM "user" WHERE discord_id = @did)
|
||||
INSERT INTO user_achievements_achievement (user_id, achievement_id) SELECT usr.id, ach.id FROM usr, ach;
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user