Skip to content

Instantly share code, notes, and snippets.

@Strernd
Created Jul 11, 2019
Embed
What would you like to do?
'use strict';
const swf = require('serverless-workload-function');
let cold = true;
exports.handler = (params) => {
const options = params || {};
return swf(options.type || 'hash', options).then(result => {
const x = { ...result, cold };
cold = false;
return x
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment