@the_pixelport/aws-lambda-graphql
Version:
Apollo server for AWS Lambda with WebSocket subscriptions support over API Gateway v1 + v2
11 lines • 319 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.computeTTL = void 0;
/**
* Computes TTL in UNIX timestamp with seconds precision
*/
function computeTTL(ttl) {
return Math.round(Date.now() / 1000 + ttl);
}
exports.computeTTL = computeTTL;
//# sourceMappingURL=computeTTL.js.map