Skip to content

Commit 9c8e7b9

Browse files
authored
[FABCN-429] Iterator tutorial updated (#249)
Signed-off-by: Kestutis Gudynas <44440041+kemi04@users.noreply.github.com>
1 parent 0751396 commit 9c8e7b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/_jsdoc/tutorials/using-iterators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ interface KV {
6868
}
6969

7070
interface KeyModification {
71-
is_delete: boolean;
71+
isDelete: boolean;
7272
value: ProtobufBytes;
7373
timestamp: Timestamp;
74-
tx_id: string;
74+
txId: string;
7575
getIsDelete(): boolean;
7676
getValue(): ProtobufBytes;
7777
getTimestamp(): Timestamp;
@@ -152,9 +152,9 @@ const results = [];
152152
for await (const keyMod of promiseOfIterator) {
153153
const resp = {
154154
timestamp: keyMod.timestamp,
155-
txid: keyMod.tx_id
155+
txid: keyMod.txId
156156
}
157-
if (keyMod.is_delete) {
157+
if (keyMod.isDelete) {
158158
resp.data = 'KEY DELETED';
159159
} else {
160160
resp.data = keyMod.value.toString('utf8');

0 commit comments

Comments
 (0)