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:
Daniel Dietzler 2024-03-29 12:56:16 +01:00 committed by GitHub
parent 78f202603c
commit 6f677b4fae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 138 additions and 92 deletions

View file

@ -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