sample/gulp/gulpfile.js
function updateSourceWithId(zipFile, projectId) {
	return fetchProject(projectId)
	.then((project) => {
		return updateSource(zipFile, project);
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
function updateSourceWithId(zipFile, projectId) {
	return fetchProject(projectId)
	.then((project) => {
		return updateSource(zipFile, project);
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
function updateSourceWithId ( zipFile , projectId ) { return fetchProject ( projectId ) . then ( ( project ) => { return updateSource ( zipFile , project ) ; } ) . catch ( ( error ) => { console . trace ( error ) ; throw error ; } ) ; }
Uploads the zip file as the new source code of the project with the same ID
@param {File} zipFile
@param {string} projectId
@return {Promise<void>}
Uploads the zip file as the new source code of the project with the same ID