refactor(server): change asset entity to date type (#2599)

* refactor(server): change asset entity to date type

* lower coverage threshold
This commit is contained in:
Michel Heusschen
2023-05-29 16:05:14 +02:00
committed by GitHub
parent caba462703
commit 94d0705607
18 changed files with 98 additions and 93 deletions

View File

@@ -107,7 +107,7 @@ export class StorageTemplateCore {
this.render(
template,
{
fileCreatedAt: new Date().toISOString(),
fileCreatedAt: new Date(),
originalPath: '/upload/test/IMG_123.jpg',
type: AssetType.IMAGE,
} as AssetEntity,
@@ -140,7 +140,7 @@ export class StorageTemplateCore {
filetypefull: asset.type == AssetType.IMAGE ? 'IMAGE' : 'VIDEO',
};
const dt = luxon.DateTime.fromISO(new Date(asset.fileCreatedAt).toISOString());
const dt = luxon.DateTime.fromJSDate(asset.fileCreatedAt);
const dateTokens = [
...supportedYearTokens,