mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Update trial requests to be type course
This commit is contained in:
parent
745b905813
commit
5ea9b6e8af
3 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -50,5 +50,3 @@ block content
|
|||
span= trialRequest.get('prepaidCode')
|
||||
else
|
||||
span= trialRequest.get('status')
|
||||
|
||||
div *Currently assumes all trial requests of type 'subscription'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue