Fehler Merge behoben
This commit is contained in:
1 parent
721dbd861c
commit
eb1e18d042
10 files changed
+205
-148
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user