Skip to content

Commit def1da9

Browse files
committed
Remove unused import and console.log
1 parent 044b4f6 commit def1da9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

components/CollapsibleSearch.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useEffect, useRef, useState } from "react";
22
import Image from "next/image";
33
import Router from "next/router";
44
import styles from "../styles/CollapsibleSearch.module.css";
5-
import { get_articles_by_string_query } from "../db";
65
import { ReceivedArticle } from "../ts_types/db_types";
76

87
const CollapsibleSearch = () => {

pages/api/articles/search.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ export default async function handler(
2020
req: NextApiRequest,
2121
res: NextApiResponse<ResponseStructure>
2222
) {
23-
let { method, body, query } = req;
23+
let { method, query } = req;
2424

2525
try {
2626
const parsed_query = query_schema.parse(query);
27-
console.log(parsed_query)
2827

2928
if (method == "GET" || method == "POST") {
3029
let articles = await get_articles_by_string_query(

0 commit comments

Comments
 (0)