Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into 1.0.9.rc-1
  • Loading branch information
Hextar committed Feb 15, 2021
2 parents 83a8596 + 6ce377a commit b156630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/database-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const IMMUDB_PWD: string = (process.env.IMMUDB_PWD as string || 'immudb');
value: randString
})
console.log('success: set', res1);
// index = res1 && res1.index;
index = res1 && res1.id;

// get item having the specified key
const res2 = await client.get({
Expand Down Expand Up @@ -91,8 +91,8 @@ const IMMUDB_PWD: string = (process.env.IMMUDB_PWD as string || 'immudb');
// iterate over keys having the specified
// prefix
const res6 = await client.scan({
seekkey: new Uint8Array(randNumber),
prefix: new Uint8Array(randNumber),
seekkey: randString,
prefix: randString,
desc: true,
limit: 1,
sincetx: randNumber,
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ class ImmudbClient {
return new Promise((resolve, reject) => this.client.getAll(req, this._metadata, (err, res) => {
if (err) {
console.error('Get all error', err);
return reject(err);
reject(err);
}

const entriesList = res.getEntriesList();
Expand Down

0 comments on commit b156630

Please sign in to comment.