UNPKG

@wmfs/tymly-pg-plugin

Version:

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

16 lines (13 loc) 358 B
'use strict' module.exports = class Walking { init (resourceConfig, env, callback) { callback(null) } run (event, context) { console.log('WALKING....') event.petDiary.push(`${event.petName} is walking... where's ${event.gender === 'male' ? 'he' : 'she'} off to?`) context.sendTaskSuccess({ petDiary: event.petDiary }) } }