auth modal
Build and Push Docker Image / build (push) Successful in 18s

This commit is contained in:
2026-05-27 09:07:23 -05:00
parent 2d4920bd15
commit 97be2d2908
2656 changed files with 497146 additions and 8 deletions
+29
View File
@@ -0,0 +1,29 @@
// API
module.exports = abort;
/**
* Aborts leftover active jobs
*
* @param {object} state - current state object
*/
function abort(state)
{
Object.keys(state.jobs).forEach(clean.bind(state));
// reset leftover jobs
state.jobs = {};
}
/**
* Cleans up leftover job by invoking abort function for the provided job id
*
* @this state
* @param {string|number} key - job id to abort
*/
function clean(key)
{
if (typeof this.jobs[key] == 'function')
{
this.jobs[key]();
}
}