Skip to content

Conversation

mariasergeenko
Copy link
Contributor

No description provided.

@mariasergeenko mariasergeenko self-assigned this Aug 10, 2023
requestBody
);

console.log(JSON.stringify(response));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need this console.log?

.map((member) => ({ ...member, name: Buffer.from(member.name, 'utf-8') }))
};

console.log(JSON.stringify(requestBody));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need this console.log?

* @param element The element in list
*/
export type ListKeyParameters = {
export type ListAndStringKeyParameters = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that this is a good practice to combine two types in one
for list key we have keyName and element
for string key we have keyName and value

import {
HashKeyParameters,
ListKeyParameters,
ListAndStringKeyParameters,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ListAndStringKeyParameters

*/
async addListKeyApi(
keyParameters: ListKeyParameters,
keyParameters: ListAndStringKeyParameters,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ListAndStringKeyParameters

* @param databaseParameters The database parameters
*/
async addStringKeyApi(
keyParameters: ListAndStringKeyParameters,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ListAndStringKeyParameters

@mariasergeenko mariasergeenko merged commit b98370b into main Aug 11, 2023
@mariasergeenko mariasergeenko deleted the e2e/bugfix/add_keys_via_api branch August 11, 2023 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants