fix(bot): 🚑 Decode orjson bytes.
This commit is contained in:
@@ -778,7 +778,7 @@ class Calls(base.Cog):
|
||||
"replying_to_id": replying_to_id,
|
||||
"created_at": datetime.now(timezone.utc),
|
||||
}
|
||||
),
|
||||
).decode(),
|
||||
)
|
||||
pipe.hset(
|
||||
constants.CALL_MESSAGE_CONTENTS_TEMPLATE % call.id,
|
||||
@@ -790,7 +790,7 @@ class Calls(base.Cog):
|
||||
"was_propagated": not bool(blocked_word),
|
||||
"created_at": datetime.now(timezone.utc),
|
||||
}
|
||||
),
|
||||
).decode(),
|
||||
)
|
||||
pipe.hset(
|
||||
constants.CALL_MESSAGE_CONTENT_ITERATIONS_TEMPLATE % call.id, message.id, 1
|
||||
@@ -863,7 +863,7 @@ class Calls(base.Cog):
|
||||
await self.bot.redis.hset(
|
||||
constants.CALL_MESSAGES_TEMPLATE % channel.call_id,
|
||||
message.id,
|
||||
orjson.dumps(message_dict),
|
||||
orjson.dumps(message_dict).decode(),
|
||||
)
|
||||
|
||||
other_channel = await models.Channel.get_or_none(
|
||||
@@ -983,7 +983,7 @@ class Calls(base.Cog):
|
||||
"was_propagated": not bool(blocked_word),
|
||||
"created_at": datetime.now(timezone.utc),
|
||||
}
|
||||
),
|
||||
).decode(),
|
||||
)
|
||||
|
||||
await pipe.exec()
|
||||
|
||||
Reference in New Issue
Block a user