fix(mobile): filter deleted assets (#19683)

This commit is contained in:
Daimolean 2025-07-03 01:25:14 +08:00 committed by GitHub
parent ca78bc91b6
commit b8e67d0ef9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@ mergedAsset: SELECT * FROM
LEFT JOIN LEFT JOIN
local_asset_entity lae ON rae.checksum = lae.checksum local_asset_entity lae ON rae.checksum = lae.checksum
WHERE WHERE
rae.visibility = 0 AND rae.owner_id in ? rae.deleted_at IS NULL AND rae.visibility = 0 AND rae.owner_id in ?
UNION ALL UNION ALL
SELECT SELECT
NULL as remote_id, NULL as remote_id,
@ -65,7 +65,7 @@ FROM
LEFT JOIN LEFT JOIN
local_asset_entity lae ON rae.checksum = lae.checksum local_asset_entity lae ON rae.checksum = lae.checksum
WHERE WHERE
rae.visibility = 0 AND rae.owner_id in ? rae.deleted_at IS NULL AND rae.visibility = 0 AND rae.owner_id in ?
UNION ALL UNION ALL
SELECT SELECT
lae.name, lae.name,