Просмотр исходного кода

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

Nicolas Meienberger 2 лет назад
Родитель
Сommit
5397a551de
1 измененных файлов с 1 добавлено и 1 удалено
  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
    */
   public installedApps = async () => {
-    const apps = await this.prisma.app.findMany();
+    const apps = await this.prisma.app.findMany({ orderBy: { id: 'asc' } });
 
     return apps
       .map((app) => {