Skip to content

Commit

Permalink
chore: remove bulk user caching (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
auniverseaway committed Nov 16, 2023
2 parents 429e822 + 44197d9 commit 14748c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/blocks/bulk-publish/bulk-publish-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ export const signOut = (e) => {
};

export const getAuthorizedUsers = async () => {
let authorizedUsers = getLocalStorage(BULK_AUTHORIZED_USERS);
if (authorizedUsers) return authorizedUsers;
const resp = await fetch(BULK_CONFIG_FILE_PATH);
const json = await resp.json();
authorizedUsers = json.users.data.map((user) => user.user);
const authorizedUsers = json.users.data.map((user) => user.user);
setLocalStorage(BULK_AUTHORIZED_USERS, authorizedUsers);
return authorizedUsers;
};
Expand Down

0 comments on commit 14748c5

Please sign in to comment.