|
|
@@ -146,9 +146,8 @@ class MongoSync {
|
|
|
console.log(`Sync add: ${eventDoc.tb} ${eventDoc.rid}`);
|
|
|
await localtb.insertOne(remotedoc);
|
|
|
} else {
|
|
|
- // 不做更新操作,没必要更新,oms只关心统计字段
|
|
|
- // console.log(`Sync update: ${eventDoc.tb} ${eventDoc.rid}`);
|
|
|
- // await localtb.replaceOne({ _id: eventDoc.rid }, remotedoc);
|
|
|
+ console.log(`Sync update: ${eventDoc.tb} ${eventDoc.rid}`);
|
|
|
+ await localtb.replaceOne({ _id: eventDoc.rid }, remotedoc);
|
|
|
}
|
|
|
}
|
|
|
}
|