Skip to content

Commit

Permalink
Merge pull request #1849 from GW2Treasures/feature/wintersday-ids
Browse files Browse the repository at this point in the history
Add new ids to wintersday pages
  • Loading branch information
darthmaim authored Dec 10, 2024
2 parents 98f48da + dceaa90 commit 065f40e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/web/app/[language]/festival/wintersday/minis/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const miniIds = [
880, // Mini Calico Cat
881, // Mini Corgi
916, // Mini Plush Cuckoo
957, // Mini Plush Fox
];

const loadData = cache(async function loadData() {
Expand Down
3 changes: 3 additions & 0 deletions apps/web/app/[language]/festival/wintersday/skins/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ const skinIds = [
11949, // Ornamented Focus
11190, // Silent Forest's Bell
10194, // Wintergreen Custom Candy Cane Hammer
12791, // Ginger Shortbread Shortbow
12757, // Wintersday Bash
12755, // Gingerbread Speargun

// armor
7991, // Eggnog Helmet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,21 @@ import { Icon } from '@gw2treasures/ui';
import { Notice } from '@gw2treasures/ui/components/Notice/Notice';

const objectiveIds: number[] = [
// TODO: add objective ids
223, // (Festival) Complete the (Annual) Festival Automaton Achievement
224, // (Festival) Complete the (Annual) Some Disassembly Required Achievement
215, // (Festival) Complete the (Annual) Wintersday Traditions Achievement
219, // (Festival) Complete the Secret Lair of the Snowmen Strike Mission
];

const loadData = cache(async function loadData() {
const [objectives] = await Promise.all([
db.wizardsVaultObjective.findMany({
where: { OR: [{ id: { in: objectiveIds }}, { name_en: { startsWith: '(Festival)' }, removedFromApi: false }] },
where: { id: { in: objectiveIds }}
})
]);

return { objectives };
}, ['wintersday-wizards-vault-objectives'], { revalidate: 60 * 5 });
}, ['wintersday-wizards-vault-objectives'], { revalidate: 60 * 60 });


export default async function WintersdayAchievementsPage({ params }: PageProps) {
Expand Down

0 comments on commit 065f40e

Please sign in to comment.