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>();
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);
if (!bucket) {