Skip to content

Commit c9edd04

Browse files
committed
fix: search sort types
1 parent 3644c14 commit c9edd04

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/frontend/src/pages/moderation/technical-review.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ function goToPage(page: number, top = false) {
226226
function toApiSort(label: string): Labrinth.TechReview.Internal.SearchProjectsSort {
227227
switch (label) {
228228
case 'Oldest':
229-
return 'CreatedAsc'
229+
return 'created_asc'
230230
case 'Newest':
231231
default:
232-
return 'CreatedDesc'
232+
return 'created_desc'
233233
}
234234
}
235235

packages/api-client/src/modules/labrinth/tech-review/internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class LabrinthTechReviewInternalModule extends AbstractModule {
2020
* const reviews = await client.labrinth.tech_review_internal.searchProjects({
2121
* limit: 20,
2222
* page: 0,
23-
* sort_by: 'CreatedAsc',
23+
* sort_by: 'created_asc',
2424
* filter: {
2525
* project_type: ['mod', 'modpack']
2626
* }

packages/api-client/src/modules/labrinth/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export namespace Labrinth {
468468
project_type?: string[]
469469
}
470470

471-
export type SearchProjectsSort = 'CreatedAsc' | 'CreatedDesc'
471+
export type SearchProjectsSort = 'created_asc' | 'created_desc'
472472

473473
export type UpdateIssueRequest = {
474474
status: DelphiReportIssueStatus

0 commit comments

Comments
 (0)