diff --git a/server/index.js b/server/index.js index 185faf7..943a224 100644 --- a/server/index.js +++ b/server/index.js @@ -37,6 +37,7 @@ knex.schema.hasTable('pledges').then(function(exists) { t.boolean('was_robot').defaultTo(true) t.integer('amount').notNullable() + t.boolean('overseas') t.string('name', 128) t.boolean('anonymous') t.string('email', 128) @@ -144,6 +145,7 @@ router.post('/pledge', async (req, res) => { let phone = req.body.phone let newsletter = req.body.newsletter == 'yes' ? true : false + let overseas = req.body.overseas == 'yes' ? true : false let messages = req.body.messages if (!!errors.length) { @@ -155,6 +157,7 @@ router.post('/pledge', async (req, res) => { let pledge = new Pledge() pledge.set('was_robot', robo) pledge.set('amount', amount) + pledge.set('overseas', overseas) pledge.set('name', name) pledge.set('anonymous', anonymous) pledge.set('email', email) diff --git a/src/index.htm b/src/index.htm index 45e8b21..9965778 100644 --- a/src/index.htm +++ b/src/index.htm @@ -16,7 +16,7 @@
Analog for Everyone
+Analog for Everyone
You get: all the perks from the next lowest level
+