From 5270df05a802d4ae0d133c9e2e9a54c4dee6a7ad Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 1 Jun 2022 14:42:28 +0200 Subject: [PATCH] OZG-1523 OZG-2525 Kommentare: createdByName durch createdBy ersetzten --- .../apps/goofy-e2e/src/fixtures/kommentar/kommentar.json | 3 +-- goofy-client/apps/goofy-e2e/src/model/kommentar.ts | 1 - goofy-client/libs/kommentar-shared/src/lib/kommentar.model.ts | 2 +- goofy-client/libs/kommentar-shared/test/kommentar.ts | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/goofy-client/apps/goofy-e2e/src/fixtures/kommentar/kommentar.json b/goofy-client/apps/goofy-e2e/src/fixtures/kommentar/kommentar.json index 99e43ec177..3e0833b92c 100644 --- a/goofy-client/apps/goofy-e2e/src/fixtures/kommentar/kommentar.json +++ b/goofy-client/apps/goofy-e2e/src/fixtures/kommentar/kommentar.json @@ -2,7 +2,6 @@ "createdAt": { "$date": "2021-03-17T08:43:52.741Z" }, - "createdBy": "", - "createdByName": "Karl Kommentar", + "createdBy": "Karl Kommentar", "text": "Test text to test the test text test" } \ No newline at end of file diff --git a/goofy-client/apps/goofy-e2e/src/model/kommentar.ts b/goofy-client/apps/goofy-e2e/src/model/kommentar.ts index 9efe8cf518..5ce513a6c9 100644 --- a/goofy-client/apps/goofy-e2e/src/model/kommentar.ts +++ b/goofy-client/apps/goofy-e2e/src/model/kommentar.ts @@ -3,6 +3,5 @@ import { DateE2E } from './util'; export class KommentarE2E { createdAt: DateE2E; createdBy: string; - createdByName: string; text: string; } \ No newline at end of file diff --git a/goofy-client/libs/kommentar-shared/src/lib/kommentar.model.ts b/goofy-client/libs/kommentar-shared/src/lib/kommentar.model.ts index 940a89aac8..f220ad1714 100644 --- a/goofy-client/libs/kommentar-shared/src/lib/kommentar.model.ts +++ b/goofy-client/libs/kommentar-shared/src/lib/kommentar.model.ts @@ -3,7 +3,7 @@ import { ListResource } from '@goofy-client/tech-shared'; import { Resource } from '@ngxp/rest'; export interface Kommentar { - createdByName: string; + createdBy: string; createdAt: Date; text: string; } diff --git a/goofy-client/libs/kommentar-shared/test/kommentar.ts b/goofy-client/libs/kommentar-shared/test/kommentar.ts index 820b8d9a04..5d45e4904f 100644 --- a/goofy-client/libs/kommentar-shared/test/kommentar.ts +++ b/goofy-client/libs/kommentar-shared/test/kommentar.ts @@ -8,7 +8,7 @@ export function createKommentar(): Kommentar { return { text: faker.random.words(10), createdAt: faker.date.past(), - createdByName: faker.random.words(2) + createdBy: faker.random.words(2) } } -- GitLab