Skip to content

Commit 1b12d46

Browse files
committed
eslint fixes
1 parent 344d992 commit 1b12d46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/hooks/api/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ plugins.register("/i/hook/save", function(ob) {
293293
common.returnMessage(params, 400, 'Invalid configuration for effects');
294294
return true;
295295
}
296-
296+
297297
if (hookConfig._id) {
298298
const id = hookConfig._id;
299299
delete hookConfig._id;
@@ -324,15 +324,15 @@ plugins.register("/i/hook/save", function(ob) {
324324
else {
325325
common.returnMessage(params, 500, "Failed to save an hook");
326326
}
327-
}
327+
}
328328
);
329329
}
330330

331331
}
332332
if (hookConfig) {
333333
hookConfig.createdBy = params.member._id; // Accessing property now with proper check
334334
hookConfig.created_at = new Date().getTime();
335-
}
335+
}
336336
return common.db.collection("hooks").insert(
337337
hookConfig,
338338
function(err, result) {

0 commit comments

Comments
 (0)