UNPKG

@wmfs/tymly-pg-plugin

Version:

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

15 lines (13 loc) 307 B
'use strict' module.exports = class Eating { run (event, context) { console.log('EATING!!!!', context.executionName) event.petDiary.push(`Shh, ${event.petName} is eating...`) context.sendTaskSuccess( { hoursSinceLastMeal: 0, petDiary: event.petDiary } ) } }