Make the findOngoingActions function plural to match what happens
This commit is contained in:
parent
2937010e95
commit
fe77908253
2 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ export default {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
async checkExistingTasks() {
|
async checkExistingTasks() {
|
||||||
let response = await this.findOngoingAction(this.thing, this.action);
|
let response = await this.findOngoingActions(this.thing, this.action);
|
||||||
// Exit if response is null, due to an error.
|
// Exit if response is null, due to an error.
|
||||||
if (response == null) return;
|
if (response == null) return;
|
||||||
// Check for a task that is ongoing.
|
// Check for a task that is ongoing.
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ export default {
|
||||||
terminateAction(taskUrl) {
|
terminateAction(taskUrl) {
|
||||||
axios.delete(taskUrl, { baseURL: this.$store.getters.baseUri });
|
axios.delete(taskUrl, { baseURL: this.$store.getters.baseUri });
|
||||||
},
|
},
|
||||||
async findOngoingAction(thing, action) {
|
async findOngoingActions(thing, action) {
|
||||||
let url = this.thingActionUrl(thing, action);
|
let url = this.thingActionUrl(thing, action);
|
||||||
try {
|
try {
|
||||||
return await axios.get(url);
|
return await axios.get(url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue