gameServer/Actions.hs
changeset 9401 2af7bea32e5e
parent 9399 1767c92eff37
child 9433 f0a8ac191839
--- a/gameServer/Actions.hs	Sat Aug 17 23:38:53 2013 +0400
+++ b/gameServer/Actions.hs	Sun Aug 18 17:29:17 2013 +0400
@@ -672,7 +672,8 @@
 
 processAction (CheckSuccess info) = do
     Just (CheckInfo fileName teams) <- client's checkInfo
-    io $ writeChan (dbQueries si) $ StoreAchievement fileName (map toPair teams) info
+    si <- gets serverInfo
+    io $ writeChan (dbQueries si) $ StoreAchievements (B.pack fileName) (map toPair teams) info
     io $ moveCheckedRecord fileName
     where
         toPair t = (teamname t, teamowner t)