Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav Ravichandran committed Nov 20, 2018
1 parent 87e7e5c commit 7280a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/caches.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ exports.plugin = {

try {
await req(payload, (err, response) => {
if (!err && response.statusCode === 200) {
if (!err && response === true) {
return awsClient.invalidateCache(cachePath, (e) => {
if (e) {
console.log('Failed to invalidate cache: ', e);
Expand Down

0 comments on commit 7280a1a

Please sign in to comment.