Fix migration query (#41)

- Bump version
This commit is contained in:
2023-02-09 11:33:59 -05:00
parent f8cdd393ff
commit f289bee79d
2 changed files with 3 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ let migrateLegacy currentId legacyId = backgroundTask {
conn
|> Sql.existingConnection
|> Sql.query $"SELECT * FROM {Table.Success} WHERE data @> @criteria"
|> Sql.parameters [ "@criteria", Sql.string oldCriteria ]
|> Sql.parameters [ "@criteria", Sql.jsonb oldCriteria ]
|> Sql.executeAsync toDocument<Success>
for success in successes do
let newSuccess = { success with Id = SuccessId.create (); CitizenId = currentId }