Skip to content

Commit a2c0f48

Browse files
author
AffanTheBest
committed
Return tracking id if successfull
1 parent 67e953d commit a2c0f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const manageProducts = async(data, action) => {
5252
return {ok: true}
5353
case 'update':
5454
const res = await collection.updateOne({tracking_id: data.tracking_id}, {$set: data}, {upsert: true});
55-
return {ok: true}
55+
return {ok: true, tracking_id: data.tracking_id}
5656
case 'read':
5757
const result = await collection.find(data).toArray();
5858
return {ok:true, result};

0 commit comments

Comments
 (0)