Skip to content

Commit

Permalink
Fix pp embed from user context menu displaying incorrect recalculatio…
Browse files Browse the repository at this point in the history
…n status
  • Loading branch information
Rian8337 committed Sep 16, 2024
1 parent a7da11a commit 00dba02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interactions/contextmenus/user/viewDPPProfile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Constants } from "@alice-core/Constants";
import { DatabaseManager } from "@alice-database/DatabaseManager";
import { UserBind } from "@alice-database/utils/elainaDb/UserBind";
import { UserContextMenuCommand } from "structures/core/UserContextMenuCommand";
import { ConstantsLocalization } from "@alice-localization/core/constants/ConstantsLocalization";
import { MessageCreator } from "@alice-utils/creators/MessageCreator";
Expand All @@ -9,12 +8,13 @@ import { DPPHelper } from "@alice-utils/helpers/DPPHelper";
import { InteractionHelper } from "@alice-utils/helpers/InteractionHelper";

export const run: UserContextMenuCommand["run"] = async (_, interaction) => {
const bindInfo: UserBind | null =
const bindInfo =
await DatabaseManager.elainaDb.collections.userBind.getFromUser(
interaction.targetUser,
{
projection: {
_id: 0,
dppRecalcComplete: 1,
uid: 1,
username: 1,
playc: 1,
Expand Down

0 comments on commit 00dba02

Please sign in to comment.