Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '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
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement