Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
fa5e778d0c | |||
c2c782985c | |||
57848ff29b | |||
3a956919b2 | |||
77fd3697b3 | |||
412871842f | |||
7910b561ea | |||
097236c3e0 | |||
8bee509090 |
5 changed files with 16 additions and 9 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "ff-admin-server",
|
"name": "ff-admin-server",
|
||||||
"version": "1.4.0",
|
"version": "1.4.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ff-admin-server",
|
"name": "ff-admin-server",
|
||||||
"version": "1.4.0",
|
"version": "1.4.2",
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ff-admin-server",
|
"name": "ff-admin-server",
|
||||||
"version": "1.4.0",
|
"version": "1.4.2",
|
||||||
"description": "Feuerwehr/Verein Mitgliederverwaltung Server",
|
"description": "Feuerwehr/Verein Mitgliederverwaltung Server",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -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) => ({
|
||||||
|
@ -750,11 +755,11 @@ export default abstract class BackupHelper {
|
||||||
.filter((d) => availableTemplates.includes(d.scope))
|
.filter((d) => availableTemplates.includes(d.scope))
|
||||||
.map((d) => ({
|
.map((d) => ({
|
||||||
...d,
|
...d,
|
||||||
headerHeightId: templates.find((template) => template.template == d.headerHeight.template)?.id ?? null,
|
headerHeightId: templates.find((template) => template.template == d.headerHeight)?.id ?? null,
|
||||||
footerHeightId: templates.find((template) => template.template == d.footerHeight.template)?.id ?? null,
|
footerHeightId: templates.find((template) => template.template == d.footerHeight)?.id ?? null,
|
||||||
headerId: templates.find((template) => template.template == d.header.template)?.id ?? null,
|
headerId: templates.find((template) => template.template == d.header?.template)?.id ?? null,
|
||||||
bodyId: templates.find((template) => template.template == d.body.template)?.id ?? null,
|
bodyId: templates.find((template) => template.template == d.body?.template)?.id ?? null,
|
||||||
footerId: templates.find((template) => template.template == d.footer.template)?.id ?? null,
|
footerId: templates.find((template) => template.template == d.footer?.template)?.id ?? null,
|
||||||
}));
|
}));
|
||||||
availableTemplates.forEach((at) => {
|
availableTemplates.forEach((at) => {
|
||||||
if (!dataWithMappedId.some((d) => d.scope == at)) {
|
if (!dataWithMappedId.some((d) => d.scope == at)) {
|
||||||
|
|
|
@ -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