Commit 95d2d017846a8a9e24dabbc89ae837491b7c303b

Authored by Adhidarma Hadiwinoto
1 parent ac60b51f7e
Exists in master

perbaikan mongo

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

... ... @@ -99,6 +99,8 @@ function insertTaskToMongoDb(task) {
99 99 try {
100 100 task.suppliers = [];
101 101 mongodb.collection(config.mongodb.collection).insertOne(task, function(err, result) {
  102 +
  103 + /*
102 104 mongodb.collection(config.mongodb.collection).updateOne(
103 105 {requestId: task.requestId},
104 106 {
... ... @@ -107,6 +109,7 @@ function insertTaskToMongoDb(task) {
107 109 }
108 110  
109 111 )
  112 + */
110 113 });
111 114 }
112 115 catch(err) {
... ... @@ -131,6 +134,7 @@ function pushResponseToMongoDb(task, response) {
131 134 }
132 135 );
133 136  
  137 + /*
134 138 if (response.parsed && response.parsed.ciwaru) {
135 139 mongodb.collection(config.mongodb.collection).updateOne(
136 140 {requestId: task.requestId},
... ... @@ -145,6 +149,7 @@ function pushResponseToMongoDb(task, response) {
145 149 }
146 150 );
147 151 }
  152 + */
148 153  
149 154 }
150 155 catch(err) {