1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

add assets to bucket group by day

This commit is contained in:
Alex Tran 2024-06-03 15:52:19 -05:00
parent 8dea3ef74f
commit 320651d63f

View file

@ -347,7 +347,7 @@ export class AssetStore {
const updatedBuckets = new Set<AssetBucket>(); const updatedBuckets = new Set<AssetBucket>();
for (const asset of assets) { for (const asset of assets) {
const timeBucket = DateTime.fromISO(asset.fileCreatedAt).toUTC().startOf('month').toString(); const timeBucket = DateTime.fromISO(asset.fileCreatedAt).toUTC().startOf('day').toString();
let bucket = this.getBucketByDate(timeBucket); let bucket = this.getBucketByDate(timeBucket);
if (!bucket) { if (!bucket) {