add assets to bucket group by day
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user