Skip to content

Commit

Permalink
fix(route): ✏️ update helper name on book delete route
Browse files Browse the repository at this point in the history
  • Loading branch information
djdembeck committed Jun 17, 2022
1 parent f77f5e1 commit adeea0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/routes/books/delete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PaprAudibleHelper from '#helpers/database/audible'
import { PaprAudibleBookHelper } from '#helpers/database/audible'
import SharedHelper from '#helpers/shared'
import { requestGeneric } from '#typing/requests'
import { FastifyInstance } from 'fastify'
Expand All @@ -7,7 +7,7 @@ async function routes(fastify: FastifyInstance) {
fastify.delete<requestGeneric>('/books/:asin', async (request, reply) => {
// Setup Helpers
const commonHelpers = new SharedHelper()
const DbHelper = new PaprAudibleHelper(request.params.asin, {})
const DbHelper = new PaprAudibleBookHelper(request.params.asin, {})

// First, check ASIN validity
if (!commonHelpers.checkAsinValidity(request.params.asin)) {
Expand Down

0 comments on commit adeea0a

Please sign in to comment.