You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/API/App/v1/Articoli.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ public function getCleanupData($last_sync_at)
31
31
32
32
publicfunctiongetModifiedRecords($last_sync_at)
33
33
{
34
-
$query = 'SELECT `mg_articoli`.`id`, `mg_articoli`.`updated_at` FROM `mg_articoli` WHERE `deleted_at` IS NULL';
34
+
$query = 'SELECT `mg_articoli`.`id`, `mg_articoli`.`updated_at` FROM `mg_articoli` WHERE 1=1';
35
35
36
36
// Filtro per data
37
37
if ($last_sync_at) {
@@ -58,7 +58,8 @@ public function retrieveRecord($id)
58
58
`mg_articoli`.`idiva_vendita` AS id_iva,
59
59
`categoria_lang`.`title` AS categoria,
60
60
`sottocategoria_lang`.`title` AS sottocategoria,
61
-
`mg_articoli`.`abilita_serial`
61
+
`mg_articoli`.`abilita_serial`,
62
+
IF(`mg_articoli`.`deleted_at` IS NULL, 0, 1) AS soft_delete
62
63
FROM
63
64
`mg_articoli`
64
65
LEFT JOIN `mg_articoli_lang` ON (`mg_articoli`.`id` = `mg_articoli_lang`.`id_record` AND `mg_articoli_lang`.`id_lang` = '.prepare(\Models\Locale::getDefault()->id).')
0 commit comments