mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-31 14:50:26 +08:00
?bug:syncInterface 接口无更新,修改sync_model的属性失败
this.syncModel.upById(projectId, oldSyncJob);-->this.syncModel.upById(oldSyncJob._id, oldSyncJob);
This commit is contained in:
parent
d5c950fdb6
commit
67e7dcf8be
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user