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,
|
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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) => ({
|
||||||
|
|
|
@ -4,4 +4,5 @@ export interface QueryStoreViewModel {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
query: string | DynamicQueryStructure;
|
query: string | DynamicQueryStructure;
|
||||||
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue