mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] refactor, rename boardcast to update_job
This commit is contained in:
parent
b789697ca9
commit
4ed5a01e8c
2 changed files with 2 additions and 2 deletions
2
run.py
2
run.py
|
@ -144,7 +144,7 @@ async def run_job(worker, job):
|
|||
worker.save()
|
||||
|
||||
await broadcast({
|
||||
"target": "job",
|
||||
"target": "update_job",
|
||||
"id": job.id,
|
||||
"data": model_to_dict(job),
|
||||
}, "jobs")
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
var data = message.data;
|
||||
var target = message.target;
|
||||
|
||||
if (target == "job") {
|
||||
if (target == "update_job") {
|
||||
for (var i = 0; i < app.jobs.length; ++i) {
|
||||
if (app.jobs[i].id == data.id) {
|
||||
Vue.set(app.jobs, i, data);
|
||||
|
|
Loading…
Add table
Reference in a new issue