Skip to content

Commit

Permalink
CHE-120 removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Sun committed Jun 17, 2024
1 parent 2881ae7 commit a09baac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const ThreadDetail = ({ forumId, threadId }: ThreadDetailProps) => {

const totalPosts: number = posts.length + 1;

if (pending) return null;
if (loading) return <div>Loading...</div>;
if (error) return <div>Error: {error}</div>;
if (!thread) return <div>Thread not found.</div>;
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/forumController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Request, Response, NextFunction } from 'express';
import Forum from '../models/forumModel';
import Thread from '../models/threadModel';
import { sortAndPopulate, aggregateSort } from './helpers/queryHelpers';
import { aggregateSort } from './helpers/queryHelpers';
import mongoose from 'mongoose';

// ENDPOINT POST api/forums
Expand Down

0 comments on commit a09baac

Please sign in to comment.