diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index 0ccd1144b..c18e3f8c5 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -140,7 +140,6 @@ const VaultPage = (props) => { const v3 = v3Ref.current.checked != false; const legacy = legacyRef.current.checked != false; - console.log(author); if (update) { setTitle(title); setCount(count); diff --git a/server/vault.api.js b/server/vault.api.js index 369e73ff1..6955d22ba 100644 --- a/server/vault.api.js +++ b/server/vault.api.js @@ -33,6 +33,8 @@ const handleErrorResponse = (res, error, functionName) => { }; const buildBrewsQuery = (legacy, v3) => { + if (legacy === 'true' && v3 === 'true') return { published: true }; + const renderers = []; if (legacy === 'true') renderers.push('legacy'); if (v3 === 'true') renderers.push('V3'); @@ -62,7 +64,7 @@ const vault = { const authorConditions = buildAuthorConditions(author, owner); const combinedQuery = { - $and: [brewsQuery, titleConditions, authorConditions] + $and: [brewsQuery, titleConditions, authorConditions], }; const projection = { @@ -98,7 +100,7 @@ const vault = { const authorConditions = buildAuthorConditions(author, owner); const combinedQuery = { - $and: [brewsQuery, titleConditions, authorConditions] + $and: [brewsQuery, titleConditions, authorConditions], }; console.log(