Job-Identifikation auf externalId umstellen und Tour-State persistieren

- Job-Löschung und -Anzeige nutzen externalId statt interner id
- RefreshBadgesMessage korrekt instanziieren
- Tour-State beim Abschluss in Job.tours zurückschreiben und persistieren
- Version auf 352 erhöht

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
SvenandClaude Opus 4.8 committed 2026-05-29 08:45:50 +02:00
1 parent b94e8f252a
commit 10b3a647e7
4 files changed
+14 -5

No files matched your search

+5 -3
View File
@@ -418,10 +418,12 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin, Produc
var removeJobMessage = message.payload as RemoveJobMessage;
final box = MyApp.objectBoxStore.box<Job>();
var job = box.get(removeJobMessage.id);
final query = box.query(Job_.externalId.equals(removeJobMessage.id)).build();
final job = query.findFirst();
query.close();
if (job != null) {
box.remove(removeJobMessage.id);
box.remove(job.id);
sendMessage(
routingKey: Constants.messageTopicJobDeleted,
@@ -430,7 +432,7 @@ class _MainState extends State<Main> with SingleTickerProviderStateMixin, Produc
sendMessage(
routingKey: Constants.messageTopicUpdateBadges,
payload: RefreshBadgesMessage,
payload: RefreshBadgesMessage(),
);
}
},