getNotAllowedPatchPropertyError:(propertyName,allowedProperties)=>newEtapiError(400,"PROPERTY_NOT_ALLOWED_FOR_PATCH",`Property '${propertyName}' is not allowed to be patched, allowed properties are ${allowedProperties}.`),
thrownewError(`Sync server has source ID ${resp.sourceId} which is also local. This usually happens when the sync client is (mis)configured to sync with itself (URL points back to client) instead of the correct sync server.`);
if(resp.memberId===memberId){
thrownewError(`Sync server has member ID ${resp.memberId} which is also local. This usually happens when the sync client is (mis)configured to sync with itself (URL points back to client) instead of the correct sync server.`);
}
syncContext.sourceId =resp.sourceId;
syncContext.memberId =resp.memberId;
constlastSyncedPull=getLastSyncedPull();
@ -131,7 +131,7 @@ async function pullChanges(syncContext) {
log.info(`Pulled ${entityChanges.length} changes in ${sizeInKb} KB, starting at entityChangeId=${lastSyncedPull} in ${pulledDate-startDate}ms and applied them in ${Date.now()-pulledDate}ms, ${outstandingPullCount} outstanding pulls`);
log.info(`Pulled ${entityChanges.length} changes in ${sizeInKb} KB, starting at entityChangeId=${lastSyncedPull} in ${pulledDate-startDate}ms and applied them in ${Date.now()-pulledDate}ms, ${outstandingPullCount} outstanding pulls`);
}
}
log.info("Finished pull");
@ -189,10 +191,9 @@ async function pushChanges(syncContext) {