issue #164 add new API method pwg.images.uploadCompleted

+ trigger ws_images_uploadCompleted when this API method is called
+ trigger empty_lounge (can be called at another moment with different effect)
This commit is contained in:
plegall 2021-09-15 13:47:41 +02:00
parent 0ee8772b9e
commit fb84527e3b
5 changed files with 87 additions and 5 deletions

View file

@ -1961,7 +1961,6 @@ INSERT IGNORE
return;
}
$logger->debug(__FUNCTION__.', exec='.$exec_id.' wins the race and gets the token!');
sleep(5);
$max_image_id = 0;
@ -2008,7 +2007,10 @@ DELETE
conf_delete_param('empty_lounge_running');
$logger->debug(__FUNCTION__.', exec='.$exec_id.', ends');
return count($rows);
trigger_notify('empty_lounge', $rows);
return $rows;
}
/**