forked from syntaxbullet/aurorabot
feat: (web) add quest table component for admin quests page
- Add getAllQuests() method to quest.service.ts - Add GET /api/quests endpoint to server.ts - Create QuestTable component with data display, formatting, and states - Update AdminQuests.tsx to fetch and display quests above the form - Add onSuccess callback to QuestForm for refresh handling
This commit is contained in:
@@ -162,5 +162,11 @@ export const questService = {
|
||||
})
|
||||
.returning();
|
||||
}, tx);
|
||||
},
|
||||
|
||||
async getAllQuests() {
|
||||
return await DrizzleClient.query.quests.findMany({
|
||||
orderBy: (quests, { asc }) => [asc(quests.id)],
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user