Skip to content

Commit

Permalink
chore: fix collection sql syntax issue on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
itttm127 authored and reinamora137 committed Feb 21, 2025
1 parent 01b6ef1 commit 889603a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/controller/stampController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ export class StampController {
CollectionController.getCollectionStamps({
limit: 4,
page: 1,
sortBy: "DESC"
})
]);

Expand Down
2 changes: 1 addition & 1 deletion server/database/collectionRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class CollectionRepository {
sortBy?: string;
},
) {
const { limit = SMALL_LIMIT, page = 1, creator, sortBy } = options;
const { limit = SMALL_LIMIT, page = 1, creator, sortBy = "DESC" } = options;
const offset = (page - 1) * limit;

let query = `
Expand Down

0 comments on commit 889603a

Please sign in to comment.