Commit 6a2e4bb6be38193806b301c36ca2e4186352c120

Authored by Adhidarma Hadiwinoto
1 parent 43852ed365
Exists in master

Dispose remaining + 1

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -146,7 +146,6 @@ const decrement = (product, xid) => new Promise((resolve) => {
146 146 resolve(reply);
147 147 });
148 148 });
149   -exports.decrement = decrement;
150 149  
151 150 const increment = (product, xid) => new Promise((resolve) => {
152 151 const keyword = composeKeyword(product);
... ... @@ -202,7 +201,7 @@ const dispose = async (product, xid) => {
202 201 return 0;
203 202 }
204 203  
205   - return remaining;
  204 + return remaining + 1;
206 205 };
207 206 exports.dispose = dispose;
208 207