Skip to content

Commit

Permalink
refactor: Remove logger from InvoiceSupabaseRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkrypto committed Aug 26, 2024
1 parent 6b04880 commit b412339
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/invoice/invoice-repository.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { z } from 'zod';
import { createClient, SupabaseClient } from '@supabase/supabase-js';
import { Database, Invoice, Service, Webhook } from '../types';
import { logger } from '../logger';
import { NotFoundException, ServerException } from '../responses';
import { invoiceCreateSchema, invoiceUpdateSchema } from './invoices-schema';
import { generateInvoiceId } from '../utils';
Expand Down Expand Up @@ -95,7 +94,6 @@ export class InvoiceSupabaseRepository implements InvoiceRepository {
.single();

if (error) {
logger.error('Supabase error', error);
throw new Error(error.message);
}

Expand Down

0 comments on commit b412339

Please sign in to comment.