Browse Source

fix(apps): always list my apps ordered by id

Nicolas Meienberger 2 years ago
parent
commit
75ca6f01f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/services/apps/apps.service.ts

+ 1 - 1
src/server/services/apps/apps.service.ts

@@ -354,7 +354,7 @@ export class AppServiceClass {
    * @returns {Promise<App[]>} - An array of app objects
    * @returns {Promise<App[]>} - An array of app objects
    */
    */
   public installedApps = async () => {
   public installedApps = async () => {
-    const apps = await this.prisma.app.findMany();
+    const apps = await this.prisma.app.findMany({ orderBy: { id: 'asc' } });
 
 
     return apps
     return apps
       .map((app) => {
       .map((app) => {