Compare commits

...

1 Commits

Author SHA1 Message Date
Alex Tran
c29919e8aa fix: memory generation and display on first load 2026-01-28 20:52:11 +00:00
2 changed files with 5 additions and 1 deletions

View File

@@ -248,6 +248,9 @@ export class MediaService extends BaseService {
await this.assetRepository.update({ id: asset.id, thumbhash });
}
const now = new Date();
await this.assetRepository.upsertJobStatus({ assetId: asset.id, previewAt: now, thumbnailAt: now });
return JobStatus.Success;
}

View File

@@ -1,10 +1,11 @@
import { memoryStore } from '$lib/stores/memory.store.svelte';
import { authenticate } from '$lib/utils/auth';
import { getFormatter } from '$lib/utils/i18n';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
await authenticate(url);
const $t = await getFormatter();
const [$t] = await Promise.all([getFormatter(), memoryStore.ready()]);
return {
meta: {