Skip to content

Commit

Permalink
remove unused assign of browse_repo
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieVangeysel committed Dec 9, 2024
1 parent dbcf5e6 commit 28e2119
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/controllers/document.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Document, { IDocument } from "../repositories/document.repository"
import * as helper from '../helper'
import Directory from "../repositories/directory.repository"
import sql from 'mssql'
import Browse from '../repositories/browse.repository'

declare module 'fastify' {
export interface FastifyInstance {
Expand Down Expand Up @@ -46,7 +45,6 @@ export default async function (fastify: FastifyInstance) {
try {
const pool = await fastify.getSqlPool()
const repo = new Document(request.log, pool)
const browse_repo = new Browse(request.log, pool)
const mode = request.query.mode ?? 'full'
const result: any = (mode === 'preview') ? await repo.getPreview(request.params.id, request.jwt.sub) : await repo.get(request.params.id, request.jwt.sub)
if (result.error) return reply.error(result.error)
Expand Down

0 comments on commit 28e2119

Please sign in to comment.