Skip to content
Snippets Groups Projects
Commit 3ab38782 authored by Tom Käsler's avatar Tom Käsler
Browse files

fix content format

parent d4036629
No related merge requests found
export enum ContentType {
CHOICE,
BINARY,
SCALE,
NUMBER,
TEXT,
GRID
CHOICE = 'CHOICE',
BINARY = 'BINARY',
SCALE = 'SCALE',
NUMBER = 'NUMBER',
TEXT = 'TEXT',
GRID = 'GRID'
}
......@@ -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'))
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment