File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments