patches v1.4.1 #90
3 changed files with 8 additions and 1 deletions
|
@ -12,6 +12,7 @@ export default abstract class QueryStoreFactory {
|
|||
id: record.id,
|
||||
title: record.title,
|
||||
query: record.query.startsWith("{") ? JSON.parse(record.query) : record.query,
|
||||
updatedAt: record.updatedAt,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -349,7 +349,12 @@ export default abstract class BackupHelper {
|
|||
"member.birthdate",
|
||||
"member.internalId",
|
||||
])
|
||||
.addSelect([...(collectIds ? ["query.id"] : []), "recipientsByQuery.title", "recipientsByQuery.query"])
|
||||
.addSelect([
|
||||
...(collectIds ? ["recipientsByQuery.id"] : []),
|
||||
"recipientsByQuery.title",
|
||||
"recipientsByQuery.query",
|
||||
"recipientsByQuery.updatedAt",
|
||||
])
|
||||
.getMany()
|
||||
.then((res: any) =>
|
||||
res.map((n: any) => ({
|
||||
|
|
|
@ -4,4 +4,5 @@ export interface QueryStoreViewModel {
|
|||
id: string;
|
||||
title: string;
|
||||
query: string | DynamicQueryStructure;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue