Skip to content

Commit

Permalink
chore: remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
veryCrunchy committed Mar 9, 2024
1 parent d0d0276 commit 6f260d9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gql/resolvers/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const contentQuery: Resolvers["Query"] = {
content: async (_, { path }) => {
try {
const cachedContent: string | undefined = cache.get(`content:${path}`);
console.log("cache", cachedContent);
if (cachedContent) {
const cachedTime: number | undefined = cache.get(
`content:${path}:time`
Expand Down Expand Up @@ -58,7 +57,6 @@ export const contentMutation: Resolvers["Mutation"] = {
tempContent: async (_, { path, content }, { request }) => {
await verifyAuth(request, UserType.Editor);

console.log(path, content);
cache.set(`content:${path}`, content, 300);
cache.set(`content:${path}:time`, Date.now());
return { status: 200, message: "Temporary Content Updated Successfully" };
Expand Down Expand Up @@ -109,7 +107,6 @@ export const contentMutation: Resolvers["Mutation"] = {
},
});
} catch (e) {
console.log(e);
return { status: 500, message: "Something went wrong." };
}
try {
Expand All @@ -129,7 +126,6 @@ const fetchAndUpdateCache = async (path: string) => {
);

const jsonContent = JSON.stringify(response.data);
console.log("content", jsonContent);
// Update the cache
cache.set(`content:${path}`, jsonContent, 3600);
cache.set(`content:${path}:time`, Date.now());
Expand Down

0 comments on commit 6f260d9

Please sign in to comment.