Unverified Commit 1e71c176 authored by sean1025's avatar sean1025 Committed by GitHub

Merge pull request #1942 from chenguangwu/master

swagger定时同步
parents d6e82622 d4304ba4
......@@ -96,9 +96,9 @@ class syncUtils {
//更新之前判断本次swagger json数据是否跟上次的相同,相同则不更新
if (newSwaggerJsonData && oldSyncJob.old_swagger_content && oldSyncJob.old_swagger_content == md5(newSwaggerJsonData)) {
//记录日志
this.saveSyncLog(0, syncMode, "接口无更新", uid, projectId);
// 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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment