Created
August 9, 2016 18:15
-
-
Save selfcontained/c49a2c85c9438ee32b600f906047fe42 to your computer and use it in GitHub Desktop.
Slapp Firebase conversation store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
// Slim wrapper around data module for Slapp ConvoStore | |
module.exports = (db) => { | |
return { | |
set (id, params, done) { | |
db.saveConvo(id, params, done) | |
}, | |
get (id, done) { | |
db.getConvo(id, done) | |
}, | |
del (id, done) { | |
db.deleteConvo(id, done) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment