[guadec-web-regcfp/develop] fix
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp/develop] fix
- Date: Fri, 19 Jun 2015 12:28:54 +0000 (UTC)
commit e3858f373316a7375a6da91029076725f3e59d2a
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Fri Jun 19 14:28:50 2015 +0200
fix
models/registration.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/models/registration.js b/models/registration.js
index 92dafb3..c924b94 100644
--- a/models/registration.js
+++ b/models/registration.js
@@ -32,7 +32,7 @@ module.exports = function(sequelize, DataTypes) {
var amount = 0;
for(var payment in this.RegistrationPayments) {
payment = this.RegistrationPayments[payment];
- if(!payment.paid && payment.method == 'onsite') {
+ if(!payment.paid && payment.type == 'onsite') {
amount += payment.amount;
}
}
@@ -42,7 +42,7 @@ module.exports = function(sequelize, DataTypes) {
var amount = 0;
for(var payment in this.RegistrationPayments) {
payment = this.RegistrationPayments[payment];
- if(!payment.paid && payment.method == 'paypal') {
+ if(!payment.paid && payment.type == 'paypal') {
amount += payment.amount;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]