add: sort data

This commit is contained in:
Julian Krauser 2025-01-12 18:17:54 +01:00
parent 1c6c123142
commit 03036c8b77
17 changed files with 19 additions and 0 deletions

View file

@ -14,6 +14,7 @@ export default abstract class TemplateUsageService {
.leftJoinAndSelect("templateUsage.header", "headerTemplate")
.leftJoinAndSelect("templateUsage.body", "bodyTemplate")
.leftJoinAndSelect("templateUsage.footer", "footerTemplate")
.orderBy("scope", "ASC")
.getMany()
.then((res) => {
return res;