fix(server): only calculate quota usage for internal assets (#6556)

only calculate usage for internal assets
This commit is contained in:
Daniel Dietzler authored and GitHub committed 2024-01-21 15:48:29 -06:00
1 parent 311261bd4e
commit 607fd39130
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -162,6 +162,7 @@ SET
LEFT JOIN "exif" "exif" ON "exif"."assetId" = "assets"."id"
WHERE
"assets"."ownerId" = users.id
AND NOT "assets"."isExternal"
),
"updatedAt" = CURRENT_TIMESTAMP
WHERE