diff options
| author | Adam Soltys <[email protected]> | 2013-10-14 22:41:31 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2013-10-14 22:41:31 -0700 |
| commit | 56508acafe22b8d5fb0aff1ce5a56ec4634dce50 (patch) | |
| tree | d1f530b154adbfa979fb649174293ea5192fcbd4 /app.coffee | |
| parent | 061012322c728858fea1de5306a6523600fa7e56 (diff) | |
| parent | b55c1a12c5e38432375829354734c13770a4fd45 (diff) | |
| download | coinos-server-56508acafe22b8d5fb0aff1ce5a56ec4634dce50.tar.gz coinos-server-56508acafe22b8d5fb0aff1ce5a56ec4634dce50.zip | |
Merge pull request #5 from metoro/master
Add phone+website
Diffstat (limited to 'app.coffee')
| -rw-r--r-- | app.coffee | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -62,3 +62,18 @@ app.use((err, req, res, next) -> ) app.listen(3000) + +# Setup DB +db = require("redis").createClient() +db.sismember("mts","mt:rest", (err,res) -> + if !res + db.hmset("mt:rest",{code: "rest", label: "Restaurant/Bar"}, -> + db.sadd("mts","mt:rest") + ) + db.hmset("mt:coff",{code: "rest", label: "Coffee Shop"}, -> + db.sadd("mts","mt:coff") + ) + console.log("Added merchant types.") +) + + |
