mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(server): extract add/remove assets logic to utility function (#8329)
extract add/remove assets logic to utility function fix tests chore: generate sql foo
This commit is contained in:
parent
78f202603c
commit
6f677b4fae
8 changed files with 138 additions and 92 deletions
|
|
@ -590,7 +590,7 @@ DELETE FROM "albums_assets_assets"
|
|||
WHERE
|
||||
"albums_assets_assets"."assetsId" = $1
|
||||
|
||||
-- AlbumRepository.removeAssets
|
||||
-- AlbumRepository.removeAssetIds
|
||||
DELETE FROM "albums_assets_assets"
|
||||
WHERE
|
||||
(
|
||||
|
|
@ -646,7 +646,7 @@ WHERE
|
|||
LIMIT
|
||||
1
|
||||
|
||||
-- AlbumRepository.addAssets
|
||||
-- AlbumRepository.addAssetIds
|
||||
INSERT INTO
|
||||
"albums_assets_assets" ("albumsId", "assetsId")
|
||||
VALUES
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue