From 9133ea38f31c5135688a0b9f5ba5c3ca410742f6 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 30 Oct 2021 10:49:17 +0200 Subject: [PATCH] Feature/order accesses (#441) * Order accesses * Update changelog --- CHANGELOG.md | 1 + apps/api/src/app/access/access.controller.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa35c1fdd..9170a354d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Improved the landing page +- Ordered the granted accesses by type ## 1.65.0 - 25.10.2021 diff --git a/apps/api/src/app/access/access.controller.ts b/apps/api/src/app/access/access.controller.ts index f7e4dff4b..bbf5423cc 100644 --- a/apps/api/src/app/access/access.controller.ts +++ b/apps/api/src/app/access/access.controller.ts @@ -39,6 +39,7 @@ export class AccessController { include: { GranteeUser: true }, + orderBy: { granteeUserId: 'asc' }, where: { userId: this.request.user.id } });