|
|
@@ -37,11 +37,11 @@ async function run() {
|
|
|
console.log(eventDoc);
|
|
|
// 只同步特定的几张表: arts, daily-arts, users, albums, translates
|
|
|
if (eventDoc.tb == 'arts'
|
|
|
- || eventDoc.tb != 'daily-arts'
|
|
|
- || eventDoc.tb != 'users'
|
|
|
- || eventDoc.tb != 'albums'
|
|
|
- || eventDoc.tb != 'videostories'
|
|
|
- || eventDoc.tb != 'translates') {
|
|
|
+ || eventDoc.tb == 'daily-arts'
|
|
|
+ || eventDoc.tb == 'users'
|
|
|
+ || eventDoc.tb == 'albums'
|
|
|
+ || eventDoc.tb == 'videostories'
|
|
|
+ || eventDoc.tb == 'translates') {
|
|
|
|
|
|
if (!eventDoc.db) eventDoc.db = remoteDbs[0];
|
|
|
// 对应的表
|