?bug:syncInterface 接口无更新,修改sync_model的属性失败

this.syncModel.upById(projectId, oldSyncJob);-->this.syncModel.upById(oldSyncJob._id, oldSyncJob);
This commit is contained in:
cgw 2020-05-27 12:47:35 +08:00
parent d5c950fdb6
commit 67e7dcf8be

View File

@ -98,7 +98,7 @@ class syncUtils {
//记录日志
// this.saveSyncLog(0, syncMode, "接口无更新", uid, projectId);
oldSyncJob.last_sync_time = yapi.commons.time();
await this.syncModel.upById(projectId, oldSyncJob);
await this.syncModel.upById(oldSyncJob._id, oldSyncJob);
return;
}