Skip to content

Commit d9aaab5

Browse files
committed
fix(graphql): change from console to logger
1 parent 7efcaaa commit d9aaab5

File tree

1 file changed

+3
-3
lines changed
  • apps/frontend/app/api/v1/osograph/schema/resolvers

1 file changed

+3
-3
lines changed

apps/frontend/app/api/v1/osograph/schema/resolvers/notebook.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,14 @@ export const notebookResolvers: GraphQLResolverModule<GraphQLContext> = {
282282
.eq("notebook_id", notebookId)
283283
.single();
284284
if (error) {
285-
console.log("Failed to find published notebook:", error);
285+
logger.log("Failed to find published notebook:", error);
286286
throw NotebookErrors.notFound();
287287
}
288288
const { error: deleteError } = await supabase.storage
289289
.from("published-notebooks")
290290
.remove([publishedNotebook.data_path]);
291291
if (deleteError) {
292-
console.log("Failed to delete notebook file:", deleteError);
292+
logger.log("Failed to delete notebook file:", deleteError);
293293
throw ServerErrors.database("Failed to delete notebook file");
294294
}
295295
const { error: updateError } = await supabase
@@ -300,7 +300,7 @@ export const notebookResolvers: GraphQLResolverModule<GraphQLContext> = {
300300
})
301301
.eq("id", publishedNotebook.id);
302302
if (updateError) {
303-
console.log("Failed to delete notebook file:", updateError);
303+
logger.log("Failed to delete notebook file:", updateError);
304304
throw ServerErrors.database("Failed to delete notebook file");
305305
}
306306

0 commit comments

Comments
 (0)