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:
parent
8dea3ef74f
commit
320651d63f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue