fix: changes_stream_syncer log url should not contain sync_upstream=true

This commit is contained in:
fengmk2
2017-08-22 09:17:13 +08:00
parent 9a11df5688
commit 6c019de514

View File

@@ -40,8 +40,8 @@ module.exports = function* sync() {
};
function syncPackage(change) {
const url = `${config.handleSyncRegistry}/${change.id}/sync?sync_upstream=true`;
urllib.request(url, {
const url = `${config.handleSyncRegistry}/${change.id}/sync`;
urllib.request(`${url}?sync_upstream=true`, {
method: 'PUT',
dataType: 'json',
timeout: 10000,