Update trial requests to be type course

This commit is contained in:
Matt Lott 2015-12-08 16:16:02 -08:00
parent 745b905813
commit 5ea9b6e8af
3 changed files with 2 additions and 4 deletions

View file

@ -13,7 +13,7 @@ _.extend TrialRequestSchema.properties,
reviewer: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
properties: {type: 'object', description: 'Data specific to this request.'}
status: {type: 'string', 'enum': ['submitted', 'approved', 'denied']}
type: {type: 'string', 'enum': ['subscription']}
type: {type: 'string', 'enum': ['course', 'subscription']}
c.extendBasicProperties TrialRequestSchema, 'TrialRequest'
module.exports = TrialRequestSchema

View file

@ -50,5 +50,3 @@ block content
span= trialRequest.get('prepaidCode')
else
span= trialRequest.get('status')
div *Currently assumes all trial requests of type 'subscription'

View file

@ -68,7 +68,7 @@ module.exports = class TeachersFreeTrialView extends RootView
# Save trial request
trialRequest = new TrialRequest
type: 'subscription'
type: 'course'
properties:
email: @email
school: school