Skip to content

Commit

Permalink
Fixing javascript code snippet
Browse files Browse the repository at this point in the history
Co-authored-by: PauloASilva <pauloasilva@gmail.com>
  • Loading branch information
bigshebang and PauloASilva committed Oct 23, 2020
1 parent 3f960b1 commit dc5486a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheets_draft/GraphQL_Cheat_Sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Code snippet from [this SO answer](https://stackoverflow.com/a/53277955/1200388)
```javascript
request.incrementResolverCount = function () {
var runTime = Date.now() - startTime;
if (runTime > 10) { // a timeout of 10 seconds
if (runTime > 10000) { // a timeout of 10 seconds
if (request.logTimeoutError) {
logger('ERROR', `Request ${request.uuid} query execution timeout`);
}
Expand Down

0 comments on commit dc5486a

Please sign in to comment.