Erweiterungen
This commit is contained in:
1 parent
279f6cb868
commit
5b3dead325
14 files changed
+114
-52
No files matched your search
@@ -207,7 +207,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 = AcceptJobMessage();
|
||||
@@ -229,5 +229,5 @@ _sendAnswer(Job job, int item) {
|
||||
MqttCore.instance.publishPayloadMessage("job", message.toJson());
|
||||
|
||||
job.state = 9;
|
||||
MyApp.isarInstance.writeTxnSync(() => {MyApp.isarInstance.jobs.putSync(job)});
|
||||
await MyApp.isarInstance.writeTxn(() async => { await MyApp.isarInstance.jobs.put(job)});
|
||||
}
|
||||
Reference in new issue
Block a user