UNPKG

@wmfs/tymly-pg-plugin

Version:

Replace Tymly's out-the-box memory storage with PostgreSQL

19 lines (16 loc) 372 B
'use strict' 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 } ) } }