Skip to content

Commit

Permalink
feat: feat: 388 add component to create course
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszszczecina committed Nov 25, 2024
1 parent 0fc305f commit d2cac70
Show file tree
Hide file tree
Showing 22 changed files with 865 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/courses/schemas/createCourse.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const baseCourseSchema = Type.Object({
description: Type.String(),
state: Type.Union([Type.Literal(STATES.draft), Type.Literal(STATES.published)]),
imageUrl: Type.Optional(Type.String()),
priceInCents: Type.Integer(),
priceInCents: Type.Optional(Type.Integer()),
currency: Type.Optional(Type.String()),
categoryId: Type.String({ format: "uuid" }),
});
Expand Down
1 change: 0 additions & 1 deletion apps/api/src/swagger/api-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4346,7 +4346,6 @@
"title",
"description",
"state",
"priceInCents",
"categoryId"
]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/api/generated-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export type CreateCourseBody = {
description: string;
state: "draft" | "published";
imageUrl?: string;
priceInCents: number;
priceInCents?: number;
currency?: string;
/** @format uuid */
categoryId: string;
Expand Down
9 changes: 9 additions & 0 deletions apps/web/app/assets/default-photo-course.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d2cac70

Please sign in to comment.