filter workers from hosting list

This commit is contained in:
ProgrammerIn-wonderland
2025-08-08 15:00:19 -04:00
committed by Neal Shah
parent 478591b676
commit 282acfb048

View File

@@ -39,7 +39,9 @@ class Hosting{
}
// todo document the `Subdomain` object.
list = utils.make_driver_method([], 'puter-subdomains', undefined, 'select');
list = async (...args) => {
return (await utils.make_driver_method([], 'puter-subdomains', undefined, 'select')(...args)).filter(e => !e.subdomain.startsWith("workers.puter."));
}
create = async (...args) => {
let options = {};