Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement