button zum prüfen

This commit is contained in:
2025-11-17 21:37:22 +01:00
parent 8e308b0d99
commit cad72232d9
5 changed files with 477 additions and 129 deletions

View File

@@ -17,6 +17,7 @@ function sanitizeEntry(entry) {
if (!entry || !entry.storeId) {
return null;
}
const parsedLastCheck = Number(entry.lastStatusCheckAt);
const normalized = {
storeId: String(entry.storeId),
storeName: entry.storeName ? String(entry.storeName).trim() : `Store ${entry.storeId}`,
@@ -27,7 +28,8 @@ function sanitizeEntry(entry) {
? 1
: entry.lastTeamSearchStatus === 0
? 0
: null
: null,
lastStatusCheckAt: Number.isFinite(parsedLastCheck) ? parsedLastCheck : null
};
if (!normalized.regionId) {
return null;