Skip to content

Commit

Permalink
change tamplate status values
Browse files Browse the repository at this point in the history
  • Loading branch information
meelrossi committed Jun 23, 2023
1 parent 395630a commit c5144d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Project/Project.router.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const aTemplate = {
id: 'aTemplateId',
is_template: true,
video: 'aTemplateVideo',
template_status: TemplateStatus.AVAILABLE,
template_status: TemplateStatus.ACTIVE,
}

const mockEmptyResult = {
Expand Down
6 changes: 3 additions & 3 deletions src/Project/Project.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export type ProjectStatisticsAttributes = Pick<
>

export enum TemplateStatus {
PENDING = 'pending',
AVAILABLE = 'available',
ACTIVE = 'active',
COMING_SOON = 'coming_soon',
}

export const projectSchema = Object.freeze({
Expand All @@ -59,7 +59,7 @@ export const projectSchema = Object.freeze({
video: { type: ['string', 'null'] },
template_status: {
type: ['string', 'null'],
enum: [TemplateStatus.PENDING, TemplateStatus.AVAILABLE, null],
enum: [TemplateStatus.COMING_SOON, TemplateStatus.ACTIVE, null],
},
},
additionalProperties: false,
Expand Down

0 comments on commit c5144d0

Please sign in to comment.