Skip to content

Instantly share code, notes, and snippets.

@selfcontained
Created August 9, 2016 18:15
Show Gist options
  • Save selfcontained/c49a2c85c9438ee32b600f906047fe42 to your computer and use it in GitHub Desktop.
Save selfcontained/c49a2c85c9438ee32b600f906047fe42 to your computer and use it in GitHub Desktop.
Slapp Firebase conversation store
'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