Compare commits
No commits in common. "main" and "v1.4.0" have entirely different histories.
5 changed files with 9 additions and 16 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.2",
|
"version": "1.4.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ff-admin-server",
|
"name": "ff-admin-server",
|
||||||
"version": "1.4.2",
|
"version": "1.4.0",
|
||||||
"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.2",
|
"version": "1.4.0",
|
||||||
"description": "Feuerwehr/Verein Mitgliederverwaltung Server",
|
"description": "Feuerwehr/Verein Mitgliederverwaltung Server",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -12,7 +12,6 @@ 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,12 +349,7 @@ export default abstract class BackupHelper {
|
||||||
"member.birthdate",
|
"member.birthdate",
|
||||||
"member.internalId",
|
"member.internalId",
|
||||||
])
|
])
|
||||||
.addSelect([
|
.addSelect([...(collectIds ? ["query.id"] : []), "recipientsByQuery.title", "recipientsByQuery.query"])
|
||||||
...(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) => ({
|
||||||
|
@ -755,11 +750,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)?.id ?? null,
|
headerHeightId: templates.find((template) => template.template == d.headerHeight.template)?.id ?? null,
|
||||||
footerHeightId: templates.find((template) => template.template == d.footerHeight)?.id ?? null,
|
footerHeightId: templates.find((template) => template.template == d.footerHeight.template)?.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,5 +4,4 @@ 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