bug fix in read.php, bump version in footer, NEW: bulk delete

This commit is contained in:
giandonato.inverso@edempg.it
2024-04-18 20:33:20 +02:00
parent 5bdcb8e2bf
commit 096c239715
9 changed files with 129 additions and 57 deletions
+3 -2
View File
@@ -155,7 +155,7 @@ class Qrcode {
* Delete qr code
*
*/
public function deleteQrcode($id) {
public function deleteQrcode($id, $async = false) {
$db = getDbInstance();
$qrcode = $this->getQrcode($id);
@@ -171,7 +171,8 @@ class Qrcode {
}
if ($status)
$this->info('Qr code deleted successfully!');
if (!$async)
$this->info('Qr code deleted successfully!');
else
$this->failure('Unable to delete qr code');
}