Skip to content

Commit 369daa2

Browse files
authored
Fix bbook-schema (#346)
1 parent 3ed5f41 commit 369daa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/MLE-Demo/book-schema.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import {
118118
resolve: (book) => {
119119
const result = session.execute('select stock from inventory where id = :id', [book.id]);
120120
if (result.rows.length > 0) {
121-
return result.rows[0][0];
121+
return result.rows[0].STOCK;
122122
} else {
123123
return 0;
124124
}

0 commit comments

Comments
 (0)