Improve condition

This commit is contained in:
Daniel García Aubert 2019-07-04 16:41:30 +02:00
parent ec0c0eb810
commit 4def4b0341

View File

@ -42,5 +42,5 @@ module.exports = function setCacheControlHeader ({
};
function everyAffectedTablesCanBeInvalidated (affectedTables) {
return affectedTables && affectedTables.getTables().every(table => !!table.updated_at);
return affectedTables && affectedTables.getTables().every(table => table.updated_at !== null);
}