8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
The following method cause error
async _deleteTKeyStoreItem(moduleName: string, id: string): Promise<void> { if (!this.metadata) { throw CoreError.metadataUndefined(); } const rawTkeyStoreItems = (this.metadata.getTkeyStoreDomain(moduleName) as EncryptedMessage[]) || []; const decryptedItems = await Promise.all( rawTkeyStoreItems.map(async (x) => { const decryptedItem = await this.decrypt(x); return JSON.parse(decryptedItem.toString()) as TkeyStoreItemType; }) ); const finalItems = decryptedItems.filter((x) => x.id !== id); this.metadata.setTkeyStoreDomain(moduleName, finalItems); await this._syncShareMetadata(); }
async _deleteTKeyStoreItem(moduleName: string, id: string): Promise<void> { if (!this.tKey.metadata) { throw CoreError.metadataUndefined(); } const rawTkeyStoreItems = (this.tKey.metadata.getTkeyStoreDomain(moduleName) as EncryptedMessage[]) || []; const decryptedItems = await Promise.all( rawTkeyStoreItems.map(async (x) => { const decryptedItem = await this.tKey.decrypt(x); return JSON.parse(decryptedItem.toString()) as TkeyStoreItemType; }) ); const finalItems = decryptedItems.filter((x) => x.id !== id); const finalRawTkeyStoreItems: EncryptedMessage[] = [] for (let i = 0; i < finalItems.length; i++) { const encryptedData = await this.tKey.encrypt(Buffer.from(stringify(finalItems[i]))); finalRawTkeyStoreItems.push(encryptedData) } this.tKey.metadata.setTkeyStoreDomain(moduleName, finalRawTkeyStoreItems); await this.tKey._syncShareMetadata(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Step to reproduce
Error
Investigate
The following method cause error
Suggested Correction
The text was updated successfully, but these errors were encountered: