From 0011c3262e91ed55297cc8939af0ed8c7db1c17d Mon Sep 17 00:00:00 2001
From: zzzang12 <wadevs12@gmail.com>
Date: Fri, 10 Nov 2023 04:44:51 +0900
Subject: [PATCH] Refactor: change Keyword class export to default

---
 src/modules/crawl.js   | 2 +-
 src/schemas/keyword.js | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/crawl.js b/src/modules/crawl.js
index 1d96b05..face81b 100644
--- a/src/modules/crawl.js
+++ b/src/modules/crawl.js
@@ -1,4 +1,4 @@
-import { Keyword } from "../schemas/keyword.js";
+import Keyword from "../schemas/keyword.js";
 import puppeteer from "puppeteer";
 
 export const crawl = async (req, res) => {
diff --git a/src/schemas/keyword.js b/src/schemas/keyword.js
index a4a6e21..ff4eebd 100644
--- a/src/schemas/keyword.js
+++ b/src/schemas/keyword.js
@@ -1,7 +1,7 @@
-export class Keyword {
+export default class Keyword {
   constructor(title) {
     this.title = title;
-    this.views = 10;
-    this.url = "https://updown.com";
+    this.views = 0;
+    this.url = "";
   }
 }
-- 
GitLab