@wmfs/tymly-pg-plugin
Version:
Replace Tymly's out-the-box memory storage with PostgreSQL
16 lines (13 loc) • 365 B
JavaScript
module.exports = class Licking {
init (resourceConfig, env, callback) {
callback(null)
}
run (event, context) {
event.petDiary.push(`${event.petName} is licking ${event.gender === 'male' ? 'him' : 'her'}self.`)
console.log('LICKING!', context.executionName)
context.sendTaskSuccess({
petDiary: event.petDiary
})
}
}