Fix "base" parameter for Action which defaults to everything enabled
This commit is contained in:
2
action/dist/index.js
vendored
2
action/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -26,10 +26,11 @@
|
||||
const data = {base:{}}
|
||||
|
||||
//Base parts
|
||||
if (("base" in q)&&(!q.base))
|
||||
conf.settings.plugins.base.parts.map(part => !(`base.${part}` in q) ? q[`base.${part}`] = false : false)
|
||||
for (const part of conf.settings.plugins.base.parts)
|
||||
data.base[part] = !!(q[`base.${part}`] ?? true)
|
||||
{
|
||||
const defaulted = ("base" in q) ? !!q.base : true
|
||||
for (const part of conf.settings.plugins.base.parts)
|
||||
data.base[part] = `base.${part}` in q ? !!q[ `base.${part}`] : defaulted
|
||||
}
|
||||
|
||||
//Placeholder
|
||||
if (login === "placeholder")
|
||||
|
||||
Reference in New Issue
Block a user