Make the findOngoingActions function plural to match what happens

This commit is contained in:
Julian Stirling 2025-11-13 11:51:03 +00:00
parent 2937010e95
commit fe77908253
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ export default {
*
*/
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.
if (response == null) return;
// Check for a task that is ongoing.

View file

@ -117,7 +117,7 @@ export default {
terminateAction(taskUrl) {
axios.delete(taskUrl, { baseURL: this.$store.getters.baseUri });
},
async findOngoingAction(thing, action) {
async findOngoingActions(thing, action) {
let url = this.thingActionUrl(thing, action);
try {
return await axios.get(url);