mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 06:56:40 +07:00
made event safe json stringify
This commit is contained in:
parent
225b80ecae
commit
1969b2666a
2 changed files with 22 additions and 13 deletions
|
@ -115,11 +115,7 @@ export class PostNewHandler extends VkEventHandler<Fields, Values> {
|
|||
this.channel.markdown
|
||||
);
|
||||
|
||||
const event = await this.createEvent(
|
||||
id,
|
||||
msg.message_id,
|
||||
context.wall.toJSON()
|
||||
);
|
||||
const event = await this.createEvent(id, msg.message_id, context);
|
||||
|
||||
await this.db.createPost(
|
||||
event!.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue