Update dataManager.js

This commit is contained in:
bee! 2024-06-19 22:01:14 -07:00 committed by GitHub
parent 0f00694d2e
commit a764d7b21c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}
}