(metadata, options) => {
return new Promise((resolve, reject) => {
jsforce.deployFromZipStream(fs.readFileSync('./package.zip'), options)
.then(result => resolve(result))
.catch(err => reject(err));
});
}
no, for multiple reasons: 1. Synchronous FS 2. .then and .catch is completely useless
Обсуждают сегодня