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:{}}
|
const data = {base:{}}
|
||||||
|
|
||||||
//Base parts
|
//Base parts
|
||||||
if (("base" in q)&&(!q.base))
|
{
|
||||||
conf.settings.plugins.base.parts.map(part => !(`base.${part}` in q) ? q[`base.${part}`] = false : false)
|
const defaulted = ("base" in q) ? !!q.base : true
|
||||||
for (const part of conf.settings.plugins.base.parts)
|
for (const part of conf.settings.plugins.base.parts)
|
||||||
data.base[part] = !!(q[`base.${part}`] ?? true)
|
data.base[part] = `base.${part}` in q ? !!q[ `base.${part}`] : defaulted
|
||||||
|
}
|
||||||
|
|
||||||
//Placeholder
|
//Placeholder
|
||||||
if (login === "placeholder")
|
if (login === "placeholder")
|
||||||
|
|||||||
Reference in New Issue
Block a user