Skip to content

Commit

Permalink
fix(server): sort resource options by created time (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Jun 28, 2023
1 parent bfceb4d commit e0b920c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/billing/resource.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class ResourceService {
const options = await this.db
.collection<ResourceOption>('ResourceOption')
.find({ regionId })
.sort({ createdAt: 1 })
.toArray()

return options
Expand Down

0 comments on commit e0b920c

Please sign in to comment.