Skip to content

Commit

Permalink
bug: Add timeout to the wordpress query if there is no response
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-mahajan committed Jun 12, 2022
1 parent 740818b commit 4995f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wp/cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const config = require('../../config')

const wpcom = require('wpcom')(config.get('WP_TOKEN'))
const timeout = config.get('WP_TIMEOUT', 60000)
const timeout = config.get("WP_TIMEOUT") || 30000;

class CmsModel {
constructor() {
Expand Down

0 comments on commit 4995f23

Please sign in to comment.