Merge pull request 'patches v1.4.1' (#90) from develop into main

Reviewed-on: #90
This commit is contained in:
Julian Krauser 2025-04-17 07:24:34 +00:00
commit 412871842f
3 changed files with 8 additions and 1 deletions

View file

@ -12,6 +12,7 @@ export default abstract class QueryStoreFactory {
id: record.id, id: record.id,
title: record.title, title: record.title,
query: record.query.startsWith("{") ? JSON.parse(record.query) : record.query, query: record.query.startsWith("{") ? JSON.parse(record.query) : record.query,
updatedAt: record.updatedAt,
}; };
} }

View file

@ -349,7 +349,12 @@ export default abstract class BackupHelper {
"member.birthdate", "member.birthdate",
"member.internalId", "member.internalId",
]) ])
.addSelect([...(collectIds ? ["query.id"] : []), "recipientsByQuery.title", "recipientsByQuery.query"]) .addSelect([
...(collectIds ? ["recipientsByQuery.id"] : []),
"recipientsByQuery.title",
"recipientsByQuery.query",
"recipientsByQuery.updatedAt",
])
.getMany() .getMany()
.then((res: any) => .then((res: any) =>
res.map((n: any) => ({ res.map((n: any) => ({

View file

@ -4,4 +4,5 @@ export interface QueryStoreViewModel {
id: string; id: string;
title: string; title: string;
query: string | DynamicQueryStructure; query: string | DynamicQueryStructure;
updatedAt: Date;
} }