Skip to content

Commit 1b3bf24

Browse files
committed
bulkJobStatus fixed
1 parent d44800a commit 1b3bf24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ var ImageKit = function(opts) {
165165
};
166166

167167
// Get bulk job status API
168-
this.getBulkJobStatus = function(jobId) {
169-
return manage.getBulkJobStatus(jobId, this.options);
170-
};
168+
this.getBulkJobStatus = promisify(function(jobId, callback) {
169+
return manage.getBulkJobStatus(jobId, this.options, callback);
170+
});
171171

172172
// To calculate distance between two pHash strings
173173
this.pHashDistance = function(firstPHash, secondPHash) {

libs/manage/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ module.exports.deleteFolder = function(folderPath, defaultOptions, callback) {
352352
/*
353353
Bulk job status
354354
*/
355-
module.exports.getBulkJobStatus = function(jobId, defaultOptions) {
355+
module.exports.getBulkJobStatus = function(jobId, defaultOptions, callback) {
356356

357357
if(!jobId) {
358358
respond(true, errorMessages.JOB_ID_MISSING, callback);

0 commit comments

Comments
 (0)