Skip to content

Commit

Permalink
generate sql
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Dec 11, 2024
1 parent 0cb0659 commit 7a63918
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion server/src/queries/asset.repository.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,20 @@ FROM
INNER JOIN "asset_files" "files" ON "files"."assetId" = "entity"."id"
WHERE
(
"files"."type" = $1
"entity"."ownerId" IN ($1)
AND "entity"."isVisible" = true
AND "entity"."isArchived" = false
AND EXTRACT(
DAY
FROM
"entity"."localDateTime" AT TIME ZONE 'UTC'
) = $2
AND EXTRACT(
MONTH
FROM
"entity"."localDateTime" AT TIME ZONE 'UTC'
) = $3
AND "files"."type" = $4
AND EXTRACT(
YEAR
FROM
Expand Down

0 comments on commit 7a63918

Please sign in to comment.