Update dataManager.js
This commit is contained in:
parent
0f00694d2e
commit
a764d7b21c
1 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ async function findPrimary() {
|
|||
return new Promise(async (resolve) => {
|
||||
await Util.asyncForEach(fronters, async (fronter) => {
|
||||
if (fronter.content.customStatus) {
|
||||
if (fronter.content.customStatus.toLowerCase().includes("primary")) {
|
||||
if (fronter.content.customStatus.toLowerCase().includes(Config.primary_tag)) {
|
||||
let member = await system.getMemberById(fronter.content.member)
|
||||
resolve({ name: member.content.name, pkId: member.content.pkId })
|
||||
found = true
|
||||
|
|
@ -353,4 +353,4 @@ module.exports = {
|
|||
removeFront,
|
||||
updateCustomStatus,
|
||||
calculateDiff
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue