Skip to content
Snippets Groups Projects
Commit 0011c326 authored by zzzang12's avatar zzzang12
Browse files

Refactor: change Keyword class export to default

parent c4e8abde
Branches
No related tags found
No related merge requests found
import { Keyword } from "../schemas/keyword.js"; import Keyword from "../schemas/keyword.js";
import puppeteer from "puppeteer"; import puppeteer from "puppeteer";
export const crawl = async (req, res) => { export const crawl = async (req, res) => {
......
export class Keyword { export default class Keyword {
constructor(title) { constructor(title) {
this.title = title; this.title = title;
this.views = 10; this.views = 0;
this.url = "https://updown.com"; this.url = "";
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment