SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2. const swf = require('serverless-workload-function');
  3. let cold = true;
  4.  
  5. exports.handler = (params) => {
  6.   const options = params || {};
  7.   return swf(options.type || 'hash', options).then(result => {
  8.     const x = { ...result, cold };
  9.     cold = false;
  10.     return x
  11.   });
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top