Skip to content

Bug: vaultId is not set on item update #122

Open
@cze-aeb

Description

@cze-aeb

Your environment

SDK Version: 1.4.1

Connect Server Version: not relevant

OS: Ubuntu 24.04.2 LTS (WSL)

Node Version: 22.14.0

What happened?

When using OPConnect.updateItem(vaultId, item) the vaultId is not set into the item like it's done for OPConnect.updateItem(vaultId, item) in here.
You need to explicit set the vaultId in item.vault.id before using OPConnect.updateItem

What did you expect to happen?

the same behaviour regading the vaultId for update and create

Steps to reproduce

// without explicit setting item.vault --> will fail
await this.apiClient.updateItem(vaultId, item);

// set vault.id before --> will succeed
item.vault = { id: vaultId };
await this.apiClient.updateItem(vaultId, item);

Notes & Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions