Skip to content

Instantly share code, notes, and snippets.

@georgesboris
Created October 16, 2017 15:56
Show Gist options
  • Save georgesboris/4d77b639a4fd5a2749d3300ccc0077a3 to your computer and use it in GitHub Desktop.
Save georgesboris/4d77b639a4fd5a2749d3300ccc0077a3 to your computer and use it in GitHub Desktop.
firebase-app - action with owner
const { postBody } = require('../paths/paths');
module.exports = {
updatePost: {
id: 'updatePost',
log: ['post'],
validate: ['value'],
updates: ({ postId, value }) => ({
[postBody(postId)]: value
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment