Add creationDate to registration & purchase data

Closes #327
This commit is contained in:
Boaz Leskes 2014-11-12 14:38:38 +01:00
parent a2fc6db470
commit 449f655f46

View file

@ -195,6 +195,7 @@ define(function (require) {
register: function (data) {
var self = this;
data.creationDate = new Date().toISOString();
this.set('registrationData', data);
this.set('status', 'registered');
self.saveToBrowser();
@ -203,6 +204,7 @@ define(function (require) {
confirmPurchase: function (data) {
var self = this;
data.creationDate = new Date().toISOString();
this.set('registrationData', data);
this.set('status', 'purchased');
this.set('registrationSent', false);