@wmfs/tymly-pg-plugin
Version:
Replace Tymly's out-the-box memory storage with PostgreSQL
19 lines (16 loc) • 372 B
JavaScript
module.exports = class Eating {
init (resourceConfig, env, callback) {
callback(null)
}
run (event, context) {
console.log('EATING!!!!', context.executionName)
event.petDiary.push(`Shh, ${event.petName} is eating...`)
context.sendTaskSuccess(
{
hoursSinceLastMeal: 0,
petDiary: event.petDiary
}
)
}
}