Rename deleteByID to deleteByName
This commit is contained in:
parent
bc34a6a85c
commit
8cc6dc57fc
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ class WorkerWare {
|
|||
};
|
||||
return fn;
|
||||
}
|
||||
deleteByID(middlewareID) {
|
||||
deleteByName(middlewareID) {
|
||||
if (this._opt.debug) dbg("Deleting middleware:", middlewareID);
|
||||
this._middlewares = this._middlewares.filter((mw) => mw.name !== middlewareID);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue