Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53c7367acf | ||
|
|
b33335d18a |
2 changed files with 6 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -5,3 +5,5 @@ config.json
|
||||||
package-lock.json
|
package-lock.json
|
||||||
.env
|
.env
|
||||||
.vercel
|
.vercel
|
||||||
|
docker_build.bat
|
||||||
|
docker_run.bat
|
||||||
|
|
|
||||||
|
|
@ -116,11 +116,14 @@ async function swapFront() {
|
||||||
for (member of front) {
|
for (member of front) {
|
||||||
let m = await system.getMemberById(member.content.member)
|
let m = await system.getMemberById(member.content.member)
|
||||||
|
|
||||||
if (m.content.pkId) {
|
if (m.content && m.content.pkId) {
|
||||||
// fronting member pkID has been found
|
// fronting member pkID has been found
|
||||||
newFront.push(m.content.pkId)
|
newFront.push(m.content.pkId)
|
||||||
frontNames.push(m.content.name)
|
frontNames.push(m.content.name)
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
console.warn('::SimplyWS:: System member not found, this may be a custom front which is unsupported.')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// shift primary fronter to first in list
|
// shift primary fronter to first in list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue