Activate reseting of delinquent high pledges
authorAdam Chlipala <adamc@hcoop.net>
Thu, 22 May 2008 00:13:54 +0000 (00:13 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Thu, 22 May 2008 00:13:54 +0000 (00:13 +0000)
money.sml

index d0668a4..1ce5774 100644 (file)
--- a/money.sml
+++ b/money.sml
@@ -292,7 +292,7 @@ fun delinquentPledgers () =
     end
 
 fun resetPledges ids =
-    raise Fail ($`UPDATE WebUser SET shares = 1 WHERE id IN (^(String.concatWith ", " (List.map C.intToSql ids)))`)
+    ignore (C.dml (getDb ()) ($`UPDATE WebUser SET shares = 1 WHERE id IN (^(String.concatWith ", " (List.map C.intToSql ids)))`))
 
 fun freezeworthyPledgers () =
     let