diff --git a/src/app/models/content-type.enum.ts b/src/app/models/content-type.enum.ts index 227ba9a4bf76f5d8582ca103f59674e81c590f84..f6bfef8cd5df4f65b4c13a15b70424a918180118 100644 --- a/src/app/models/content-type.enum.ts +++ b/src/app/models/content-type.enum.ts @@ -1,8 +1,8 @@ export enum ContentType { - CHOICE, - BINARY, - SCALE, - NUMBER, - TEXT, - GRID + CHOICE = 'CHOICE', + BINARY = 'BINARY', + SCALE = 'SCALE', + NUMBER = 'NUMBER', + TEXT = 'TEXT', + GRID = 'GRID' } diff --git a/src/app/services/http/content.service.ts b/src/app/services/http/content.service.ts index 570261ab69fd4076cca49c975d0015ee12955c00..fbb8a0c591d006ea2a93a37a0d35caa6e74b4a1c 100644 --- a/src/app/services/http/content.service.ts +++ b/src/app/services/http/content.service.ts @@ -36,7 +36,7 @@ export class ContentService extends BaseHttpService { const connectionUrl = this.apiUrl.base + this.apiUrl.content + '/'; return this.http.post<Content>(connectionUrl, { roomId: content.roomId, subject: content.subject, body: content.body, - type: 'Content', format: content.format, group: 'preparation' }, + format: content.format, group: 'preparation' }, httpOptions).pipe( catchError(this.handleError<Content>('addContent')) ); @@ -46,7 +46,7 @@ export class ContentService extends BaseHttpService { const connectionUrl = this.apiUrl.base + this.apiUrl.content + '/'; return this.http.post<ContentChoice>(connectionUrl, { roomId: contentChoice.roomId, subject: contentChoice.subject, body: contentChoice.body, - type: 'ChoiceContent', format: contentChoice.format, group: 'preparation' }, + format: contentChoice.format, group: 'preparation' }, httpOptions).pipe( catchError(this.handleError<ContentChoice>('addContent')) );