UNPKG

@wmfs/tymly-pg-plugin

Version:

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

16 lines (13 loc) 308 B
'use strict' module.exports = class Sleeping { init (resourceConfig, env, callback) { callback(null) } run (event, context) { event.petDiary.push(`Sweet dreams ${event.petName}! x`) console.log('SLEEPING!!!!!!!!') context.sendTaskSuccess({ petDiary: event.petDiary }) } }