UNPKG

@wmfs/tymly-pg-plugin

Version:

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

15 lines (12 loc) 280 B
'use strict' module.exports = class WakingUp { init (resourceConfig, env, callback) { callback(null) } run (event, context) { event.petDiary.push(`Look out, ${event.petName} is waking up!`) context.sendTaskSuccess({ petDiary: event.petDiary }) } }