diff --git a/server/controller/stampController.ts b/server/controller/stampController.ts index 8e5aca5b..75c828e3 100644 --- a/server/controller/stampController.ts +++ b/server/controller/stampController.ts @@ -423,6 +423,7 @@ export class StampController { CollectionController.getCollectionStamps({ limit: 4, page: 1, + sortBy: "DESC" }) ]); diff --git a/server/database/collectionRepository.ts b/server/database/collectionRepository.ts index 3a60f6e2..23873b25 100644 --- a/server/database/collectionRepository.ts +++ b/server/database/collectionRepository.ts @@ -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 = `