Skip to content

Commit

Permalink
refactor: Remove console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze committed Aug 3, 2024
1 parent 56fd66d commit ab9a376
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions web/app/feature/translate/functions/mutations.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function getOrCreateSourceTextIdAndPageVersionSourceText(
"hex",
);

const result = await prisma.$transaction(async (tx) => {
return prisma.$transaction(async (tx) => {
const sourceText = await tx.sourceText.upsert({
where: {
textHash_number: {
Expand Down Expand Up @@ -43,6 +43,4 @@ export async function getOrCreateSourceTextIdAndPageVersionSourceText(

return sourceText.id;
});
console.log(result);
return result;
}
1 change: 0 additions & 1 deletion web/app/routes/reader.$/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
safeUserId ?? 0,
targetLanguage,
);
console.log(pageData);

if (!pageData) {
throw new Response("Failed to fetch article", { status: 500 });
Expand Down

0 comments on commit ab9a376

Please sign in to comment.