Skip to content

Commit

Permalink
VIL-320 to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
GaspardRivoire committed May 30, 2024
1 parent d577811 commit db9c196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/pelicoPresentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pelicoController.get({ path: '/:id', userType: UserType.OBSERVATOR }, async (req

// --- Créer une présentation Pelico ---
type CreatePelicoData = {
content: ActivityContent;
content: ActivityContent[];
};
const CREATE_SCHEMA: JSONSchemaType<CreatePelicoData> = {
type: 'object',
Expand Down Expand Up @@ -62,7 +62,7 @@ pelicoController.post({ path: '', userType: UserType.ADMIN }, async (req: Reques

// --- Mettre à jour une présentation Pelico ---
type UpdatePelicoData = {
content?: ActivityContent;
content?: ActivityContent[];
};
const UPDATE_SCHEMA: JSONSchemaType<UpdatePelicoData> = {

Check failure on line 67 in server/controllers/pelicoPresentation.ts

View workflow job for this annotation

GitHub Actions / typescript

Type '{ type: "object"; properties: { content: { type: "array"; items: { type: "object"; properties: { id: { type: "number"; nullable: false; }; type: { type: "string"; nullable: false; enum: ("text" | "video" | "image" | "h5p" | "sound" | "document")[]; }; value: { ...; }; }; required: ("type" | "value")[]; }; nullable: ...' is not assignable to type 'UncheckedJSONSchemaType<UpdatePelicoData, false>'.
type: 'object',
Expand Down

0 comments on commit db9c196

Please sign in to comment.