Skip to content

Commit

Permalink
chore: update api response for getById
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Jan 9, 2024
1 parent c3e0597 commit 72e054e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vk-io/src/structures/attachments/wall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class WallAttachment extends Attachment<IWallAttachmentPayload, AttachmentType.W
return;
}

const [post] = await this.api.wall.getById({
const { items: [post] } = await this.api.wall.getById({
posts: `${this.ownerId}_${this.id}`,
extended: 0,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/vk-io/src/updates/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ export class Updates {

if (!this.options.pollingGroupId) {
try {
const [group] = await this.api.groups.getById({});
const { groups: [group] } = await this.api.groups.getById({});

this.pollingTransport = new PollingTransport({
api: this.api,
Expand Down

0 comments on commit 72e054e

Please sign in to comment.