refactor: tighten backend and logic boundaries

This commit is contained in:
Hide_D committed 2026-08-15 06:46:52 +00:00
1 parent 7b02ff155f
commit 35d8824b95
86 files changed
+820 -1872

No files matched your search

-7
View File
@@ -46,13 +46,6 @@ const decodeImage = (input: string): Buffer => {
return buffer;
};
const SEOUL_OFFSET_MS = 9 * 60 * 60 * 1000;
export const kstDayStart = (value: Date): Date => {
const shifted = new Date(value.getTime() + SEOUL_OFFSET_MS);
return new Date(Date.UTC(shifted.getUTCFullYear(), shifted.getUTCMonth(), shifted.getUTCDate()) - SEOUL_OFFSET_MS);
};
const assertIconChangeAvailable = (user: UserRecord, now: Date): void => {
if (
user.picture !== 'default.jpg' &&