Skip to content

Commit

Permalink
Merge pull request #30 from DSC-best/bot-vote-logs
Browse files Browse the repository at this point in the history
Fix bugles
  • Loading branch information
mikaib authored Dec 5, 2023
2 parents 5a56688 + 5ae25e0 commit c799949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/api/v1/bots/[bot_id]/vote/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export async function POST({ locals, params }) {
where: {
bot_id: bot.id,
voter_id: locals.actor!.id
},
orderBy: {
created_time: 'desc'
}
});

Expand Down
3 changes: 3 additions & 0 deletions src/routes/bots/[bot_id]/vote/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export async function load({ locals, params }) {
where: {
bot_id: bot.id,
voter_id: locals.actor!.id
},
orderBy: {
created_time: 'desc'
}
});

Expand Down

0 comments on commit c799949

Please sign in to comment.