From 64f53e674c955d9891e0f95be1eeaa37d7547fa7 Mon Sep 17 00:00:00 2001 From: sevtdy Date: Sat, 16 Mar 2024 04:13:08 +0800 Subject: [PATCH] feat(web): add millisecond options to storage template settings (#7942) * feat(web): add millisecond options storage template settings * fix(web): fix test --------- Co-authored-by: Alex Tran --- server/src/domain/system-config/system-config.constants.ts | 2 +- server/src/domain/system-config/system-config.service.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/domain/system-config/system-config.constants.ts b/server/src/domain/system-config/system-config.constants.ts index 47bddb97b0..0290472aa0 100644 --- a/server/src/domain/system-config/system-config.constants.ts +++ b/server/src/domain/system-config/system-config.constants.ts @@ -4,7 +4,7 @@ export const supportedWeekTokens = ['W', 'WW']; export const supportedDayTokens = ['d', 'dd']; export const supportedHourTokens = ['h', 'hh', 'H', 'HH']; export const supportedMinuteTokens = ['m', 'mm']; -export const supportedSecondTokens = ['s', 'ss']; +export const supportedSecondTokens = ['s', 'ss', 'SSS']; export const supportedPresetTokens = [ '{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}', '{{y}}/{{MM}}-{{dd}}/{{filename}}', diff --git a/server/src/domain/system-config/system-config.service.spec.ts b/server/src/domain/system-config/system-config.service.spec.ts index 8fa203ae24..5602c378be 100644 --- a/server/src/domain/system-config/system-config.service.spec.ts +++ b/server/src/domain/system-config/system-config.service.spec.ts @@ -323,7 +323,7 @@ describe(SystemConfigService.name, () => { '{{y}}/{{y}}-{{WW}}/{{assetId}}', '{{album}}/{{filename}}', ], - secondOptions: ['s', 'ss'], + secondOptions: ['s', 'ss', 'SSS'], weekOptions: ['W', 'WW'], yearOptions: ['y', 'yy'], });