Merge pull request 'patches v1.7.3' (#120) from develop into main

Reviewed-on: #120
This commit is contained in:
Julian Krauser 2025-07-14 12:29:06 +00:00
commit d74286a2a3
16 changed files with 17 additions and 17 deletions

View file

@ -13,7 +13,7 @@ export default abstract class CalendarService {
.getRepository(calendar) .getRepository(calendar)
.createQueryBuilder("calendar") .createQueryBuilder("calendar")
.leftJoinAndSelect("calendar.type", "type") .leftJoinAndSelect("calendar.type", "type")
.orderBy("starttime", "ASC") .orderBy("calendar.starttime", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -12,7 +12,7 @@ export default abstract class NewsletterService {
return await dataSource return await dataSource
.getRepository(newsletter) .getRepository(newsletter)
.createQueryBuilder("newsletter") .createQueryBuilder("newsletter")
.orderBy("createdAt", "DESC") .orderBy("newsletter.createdAt", "DESC")
.offset(offset) .offset(offset)
.limit(count) .limit(count)
.getManyAndCount() .getManyAndCount()

View file

@ -14,7 +14,7 @@ export default abstract class ProtocolService {
.createQueryBuilder("protocol") .createQueryBuilder("protocol")
.offset(offset) .offset(offset)
.limit(count) .limit(count)
.orderBy("date", "DESC") .orderBy("protocol.date", "DESC")
.getManyAndCount() .getManyAndCount()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -13,7 +13,7 @@ export default abstract class AwardService {
return await dataSource return await dataSource
.getRepository(award) .getRepository(award)
.createQueryBuilder("award") .createQueryBuilder("award")
.orderBy("award", "ASC") .orderBy("award.award", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -12,7 +12,7 @@ export default abstract class CalendarTypeService {
return await dataSource return await dataSource
.getRepository(calendarType) .getRepository(calendarType)
.createQueryBuilder("calendarType") .createQueryBuilder("calendarType")
.orderBy("type", "ASC") .orderBy("calendarType.type", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -12,7 +12,7 @@ export default abstract class CommunicationTypeService {
return await dataSource return await dataSource
.getRepository(communicationType) .getRepository(communicationType)
.createQueryBuilder("communicationType") .createQueryBuilder("communicationType")
.orderBy("type", "ASC") .orderBy("communicationType.type", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -11,7 +11,7 @@ export default abstract class EducationService {
return await dataSource return await dataSource
.getRepository(education) .getRepository(education)
.createQueryBuilder("education") .createQueryBuilder("education")
.orderBy("education", "ASC") .orderBy("education.education", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -13,7 +13,7 @@ export default abstract class ExecutivePositionService {
return await dataSource return await dataSource
.getRepository(executivePosition) .getRepository(executivePosition)
.createQueryBuilder("executivePosition") .createQueryBuilder("executivePosition")
.orderBy("position", "ASC") .orderBy("executivePosition.position", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -13,7 +13,7 @@ export default abstract class MembershipStatusService {
return await dataSource return await dataSource
.getRepository(membershipStatus) .getRepository(membershipStatus)
.createQueryBuilder("membershipStatus") .createQueryBuilder("membershipStatus")
.orderBy("status", "ASC") .orderBy("membershipStatus.status", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -14,7 +14,7 @@ export default abstract class QualificationService {
return await dataSource return await dataSource
.getRepository(qualification) .getRepository(qualification)
.createQueryBuilder("qualification") .createQueryBuilder("qualification")
.orderBy("qualification", "ASC") .orderBy("qualification.qualification", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -12,7 +12,7 @@ export default abstract class QueryStoreService {
return await dataSource return await dataSource
.getRepository(query) .getRepository(query)
.createQueryBuilder("queryStore") .createQueryBuilder("queryStore")
.orderBy("title", "ASC") .orderBy("queryStore.title", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -12,7 +12,7 @@ export default abstract class SalutationService {
return await dataSource return await dataSource
.getRepository(salutation) .getRepository(salutation)
.createQueryBuilder("salutation") .createQueryBuilder("salutation")
.orderBy("salutation", "ASC") .orderBy("salutation.salutation", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -13,7 +13,7 @@ export default abstract class TemplateService {
return await dataSource return await dataSource
.getRepository(template) .getRepository(template)
.createQueryBuilder("template") .createQueryBuilder("template")
.orderBy("template", "ASC") .orderBy("template.template", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

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

View file

@ -13,7 +13,7 @@ export default abstract class RoleService {
.getRepository(role) .getRepository(role)
.createQueryBuilder("role") .createQueryBuilder("role")
.leftJoinAndSelect("role.permissions", "role_permissions") .leftJoinAndSelect("role.permissions", "role_permissions")
.orderBy("role", "ASC") .orderBy("role.role", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;

View file

@ -16,8 +16,8 @@ export default abstract class UserService {
.leftJoinAndSelect("user.roles", "roles") .leftJoinAndSelect("user.roles", "roles")
.leftJoinAndSelect("user.permissions", "permissions") .leftJoinAndSelect("user.permissions", "permissions")
.leftJoinAndSelect("roles.permissions", "role_permissions") .leftJoinAndSelect("roles.permissions", "role_permissions")
.orderBy("firstname", "ASC") .orderBy("user.firstname", "ASC")
.addOrderBy("lastname", "ASC") .addOrderBy("user.lastname", "ASC")
.getMany() .getMany()
.then((res) => { .then((res) => {
return res; return res;