Skip to content

Commit

Permalink
Reverted previous commit and fixed broken test instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cmraible committed Jan 29, 2025
1 parent 3b9de85 commit 5fb65f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ghost/core/core/shared/settings-cache/CacheManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ class CacheManager {
cacheEntry.override = true;
}

// Return if the cacheEntry is undefined, but continue if it's null or false
if (cacheEntry === undefined) {
if (!cacheEntry) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion ghost/core/test/e2e-api/admin/members.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ describe('Members API', function () {
await agent.delete(`/members/${memberFailVerification.id}`);

await configUtils.restore();
settingsCache.set('email_verification_required', false);
settingsCache.set('email_verification_required', {value: false});
});

it('Can add and send a signup confirmation email', async function () {
Expand Down

0 comments on commit 5fb65f0

Please sign in to comment.