Fehler Merge behoben

This commit is contained in:
Sven committed 2024-03-27 15:11:31 +01:00
1 parent 721dbd861c
commit eb1e18d042
10 files changed
+205 -148

No files matched your search

+3 -3
View File
@@ -203,7 +203,7 @@ Future<void> showAcceptJobsPopup(BuildContext context, List<Job> jobs, Function(
});
}
_sendAnswer(Job job, int item) {
_sendAnswer(Job job, int item) async {
var currentPosition = MyApp.currentPosition;
var message = Reaction();
@@ -219,8 +219,8 @@ _sendAnswer(Job job, int item) {
MqttCore.instance.publishText("reaction", jsonEncode(message.toJson()));
MyApp.isarInstance.writeTxnSync(() {
MyApp.isarInstance.jobs.deleteSync(job.id);
await MyApp.isarInstance.writeTxn(() async{
await MyApp.isarInstance.jobs.delete(job.id);
});
MessageService().publish(Constants.messageTopicRefreshBadges, arguments: RefreshBadgesMessage());