fix: use json func instead of jsonb

This commit is contained in:
Anna 2024-02-18 11:05:50 -05:00
parent f2f2e09e62
commit 282f764916
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ internal class Command : IDisposable {
"""
insert into screenshots
(hash, path, active_character, location, location_sub, area, area_sub, territory_type, world, world_id, captured_at_local, captured_at_utc, eorzea_time, weather, ward, plot, visible_characters)
values ($hash, $path, jsonb($active_character), $location, $location_sub, $area, $area_sub, $territory_type, $world, $world_id, $captured_at_local, $captured_at_utc, $eorzea_time, $weather, $ward, $plot, jsonb($visible_characters))
values ($hash, $path, json($active_character), $location, $location_sub, $area, $area_sub, $territory_type, $world, $world_id, $captured_at_local, $captured_at_utc, $eorzea_time, $weather, $ward, $plot, json($visible_characters))
""",
new Dictionary<string, object?> {
["$hash"] = saved.Blake3Hash,