refactor: rename receivingOrganizations field

This commit is contained in:
Roman Klopsch
2019-06-19 11:59:29 +02:00
committed by Benjamin Jöckel
parent d781dd6de5
commit 7fbe1620ee
2 changed files with 8 additions and 8 deletions

View File

@@ -29,6 +29,11 @@ import {SCOrganizationWithoutReferences} from './organization';
*/ */
export interface SCMessageWithoutReferences export interface SCMessageWithoutReferences
extends SCCreativeWorkWithoutReferences { extends SCCreativeWorkWithoutReferences {
/**
* Recipients of the message
*/
audienceOrganizations?: SCOrganizationWithoutReferences[];
/** /**
* Audience of the message * Audience of the message
*/ */
@@ -46,11 +51,6 @@ export interface SCMessageWithoutReferences
*/ */
messageBody: string; messageBody: string;
/**
* Recipients of the message
*/
receivingOrganizations?: SCOrganizationWithoutReferences[];
/** /**
* Translated fields of a message * Translated fields of a message
*/ */
@@ -115,18 +115,18 @@ export class SCMessageMeta
de: { de: {
...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations ...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations
.de, .de,
audienceOrganizations: 'Publikumsorganisationen',
audiences: 'Zielgruppen', audiences: 'Zielgruppen',
dateCreated: 'Erstellungsdatum', dateCreated: 'Erstellungsdatum',
messageBody: 'Nachrichteninhalt', messageBody: 'Nachrichteninhalt',
receivingOrganizations: 'empfangende Organisationen',
}, },
en: { en: {
...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations ...SCCreativeWorkMeta.getInstance<SCCreativeWorkMeta>().fieldTranslations
.en, .en,
audienceOrganizations: 'audience organizations',
audiences: 'audiences', audiences: 'audiences',
dateCreated: 'date created', dateCreated: 'date created',
messageBody: 'message body', messageBody: 'message body',
receivingOrganizations: 'receiving organizations',
}, },
}; };

View File

@@ -12,7 +12,7 @@
"audiences": [ "audiences": [
"students" "students"
], ],
"receivingOrganizations": [{ "audienceOrganizations": [{
"name": "TU Berlin", "name": "TU Berlin",
"type": "organization", "type": "organization",
"uid": "4806ef14-b631-5c20-91d1-3c627decca5a" "uid": "4806ef14-b631-5c20-91d1-3c627decca5a"