DoSomething/ds-mdata-responder — pull request #57 by jonuy (2014-06-23 23:35:23+00:00)
Title: Database URI set in app config

#### What's this PR do?
The database uri is now set in the `app` var. The name is changing because some other types of data (SMS games) will now be stored in the database. Deploying this change could cause someone in the middle of the tips flow to restart from the beginning ... which isn't the worst thing in the world. We can minimize this by deploying this change either first thing in the morning or late at night when fewer people will be texting in to get tips.

#### Where should the reviewer start?
The database uri is now set in `app/config/index.js`. This is used in one place in `app/models/Tip.js`. And the app var needs to be passed in so that the `app` config value can actually be referenced.

#### How should this be manually tested?
The only component using the database before was our tips code. So if you POST to `http://locahost:4711/ds/tips` with parameters `phone=&mdata_id=10673` twice, you should get two different messages.

#### What are the relevant tickets?
Closes #52