Skip to content

Commit

Permalink
adjusted require statement and fixing grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
JasmineRocket authored Sep 24, 2024
1 parent 314b43b commit 99d68dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const winston = require('winston');
const start = module.exports;

const db = require('./database');
const topics = require('../../topics');
const Topics = require('./topics');

start.start = async function () {
printStartupInfo();
Expand Down Expand Up @@ -155,8 +155,7 @@ async function shutdown(code) {

async function getTopicIdByTitle(title) {
const topic = await db.models.topics.findOne({ title });
return topic ? topic.tid : null;
}
return topic ? topic.tid : null;

async function addTagsToTopic() {
try {
Expand Down

0 comments on commit 99d68dd

Please sign in to comment.