|
|
@@ -34,7 +34,6 @@ async function run() {
|
|
|
count = 0;
|
|
|
for (let i = 0; i < eventDocs.length; i++) {
|
|
|
let eventDoc = eventDocs[i];
|
|
|
- console.log(eventDoc);
|
|
|
// 只同步特定的几张表: arts, daily-arts, users, albums, translates
|
|
|
if (eventDoc.tb == 'arts'
|
|
|
|| eventDoc.tb == 'daily-arts'
|
|
|
@@ -43,6 +42,8 @@ async function run() {
|
|
|
|| eventDoc.tb == 'videostories'
|
|
|
|| eventDoc.tb == 'translates') {
|
|
|
|
|
|
+ console.log(eventDoc);
|
|
|
+
|
|
|
if (!eventDoc.db) eventDoc.db = remoteDbs[0];
|
|
|
// 对应的表
|
|
|
remotetb = remoteDB.collection(eventDoc.tb);
|