@wmfs/tymly-pg-plugin
Version:
Replace Tymly's out-the-box memory storage with PostgreSQL
18 lines (15 loc) • 341 B
JavaScript
module.exports = class Sitting {
init (resourceConfig, env, callback) {
callback(null)
}
run (event, context) {
event.petDiary.push(`Stand back, ${event.petName} is using the cat litter!`)
context.sendTaskSuccess(
{
hoursSinceLastMotion: 0,
petDiary: event.petDiary
}
)
}
}