Aktualisiere die Version auf 1.8.11 und passe die Push-Benachrichtigung für aktualisierte QTTR-Werte an. Ändere die Signatur der QTTR-Liste, um die Spieler-ID zu verwenden.
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 5m26s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped

This commit is contained in:
Torsten Schulz (local)
2026-09-29 07:36:14 +02:00
parent 1fc28a6438
commit 9eacbc77ea
3 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "harheimertc-website",
"version": "1.8.10",
"version": "1.8.11",
"description": "Moderne Webseite für den Harheimer Tischtennis Club",
"private": true,
"type": "module",

View File

@@ -337,7 +337,7 @@ export async function sendOwnTtrChangePush(changes = []) {
export async function sendQttrListUpdatedPush({ importedAt, rowCount }) {
return sendPushToUsers({
title: 'QTTR-Liste aktualisiert',
body: `Die aktuelle TTR- und QTTR-Liste wurde aktualisiert (${rowCount} Einträge).`,
body: `Die aktuellen QTTR-Werte wurden aktualisiert (${rowCount} Einträge).`,
data: {
type: 'qttr_list_updated',
importedAt: importedAt || '',

View File

@@ -297,8 +297,7 @@ function qttrListSignature(rows) {
if (!Array.isArray(rows) || rows.length === 0) return ''
return rows
.map(row => [
String(row?.playerName || '').trim().toLocaleLowerCase('de-DE'),
row?.rank ?? '',
String(row?.playerNumber || row?.playerName || '').trim().toLocaleLowerCase('de-DE'),
row?.currentQttr ?? ''
].join('|'))
.sort()