Commit 0e90ae10a3936f39513c7211ff6735b64f66f48c

Authored by Adhidarma Hadiwinoto
1 parent 774e1bf20c
Exists in master

perbaikan mongo

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

... ... @@ -97,6 +97,7 @@ function insertTaskToMongoDb(task) {
97 97 if (!isMongoReady()) { return; }
98 98  
99 99 try {
  100 + task.suppliers = [];
100 101 mongodb.collection(config.mongodb.collection).insertOne(task, function(err, result) {
101 102 mongodb.collection(config.mongodb.collection).updateOne(
102 103 {requestId: task.requestId},