Renamed profiles to presets. Added preconditition.

This commit is contained in:
Zaid Abdulla committed 2013-01-12 16:08:15 +03:00
1 parent 5d95f6039b
commit 04b92945fe
7 files changed
+230 -143

No files matched your search

+2 -6
View File
@@ -4,10 +4,6 @@ Memcached = require 'memcached'
Memcached.config.maxExpiration = 86400
memcached = new Memcached(config.MEMCACHED_SOCKET)
# Create MongoDB connections
tasksCollection = null
devicesCollection = null
profilesCollection = null
dbserver = new mongo.Server(config.MONGODB_SOCKET, 0, {auto_reconnect: true})
db = new mongo.Db(config.DATABASE_NAME, dbserver, {native_parser:true, safe:true})
@@ -23,8 +19,8 @@ db.open( (err, db) ->
exports.devicesCollection = collection
)
db.collection('profiles', (err, collection) ->
exports.profilesCollection = collection
db.collection('presets', (err, collection) ->
exports.presetsCollection = collection
)
)