Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/config/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import base64
import binascii
import json
import os
Expand Down Expand Up @@ -108,7 +109,7 @@ def encoder(bin_value: bytes) -> bytes:
def decoder(bin_value: bytes) -> Any:
# the byte is the \x01 prefix for jsonb used by PostgreSQL.
# asyncpg returns it when format='binary'
return decode_json(bin_value[1:])
return decode_json(base64.b64decode(bin_value[1:]))

dbapi_connection.await_(
dbapi_connection.driver_connection.set_type_codec(
Expand Down