Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { OrdersModule } from './modules/orders/orders.module';
import { BuyerRequestsModule } from './modules/buyer-requests/buyer-requests.module';
import { OffersModule } from './modules/offers/offers.module';
import { SupabaseModule } from './modules/supabase/supabase.module';
import { CommentsModule } from './modules/comments/comments.module';

// Entities
import { User } from './modules/users/entities/user.entity';
Expand All @@ -37,7 +36,6 @@ import { CouponUsage } from './modules/coupons/entities/coupon-usage.entity';
import { BuyerRequest } from './modules/buyer-requests/entities/buyer-request.entity';
import { Offer } from './modules/offers/entities/offer.entity';
import { OfferAttachment } from './modules/offers/entities/offer-attachment.entity';
import { Comment } from './modules/comments/entities/comment.entity';

@Module({
imports: [
Expand Down Expand Up @@ -65,7 +63,6 @@ import { Comment } from './modules/comments/entities/comment.entity';
BuyerRequest,
Offer,
OfferAttachment,
Comment,
],
synchronize: process.env.NODE_ENV !== 'production',
logging: process.env.NODE_ENV === 'development',
Expand All @@ -84,7 +81,6 @@ import { Comment } from './modules/comments/entities/comment.entity';
BuyerRequestsModule,
OffersModule,
SupabaseModule,
CommentsModule,
],
})
export class AppModule {}
4 changes: 0 additions & 4 deletions src/modules/buyer-requests/entities/buyer-request.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
} from 'typeorm';
import { User } from '../../users/entities/user.entity';
import { Offer } from '../../offers/entities/offer.entity';
import { Comment } from '@/modules/comments/entities/comment.entity';

export enum BuyerRequestStatus {
OPEN = 'open',
Expand Down Expand Up @@ -67,9 +66,6 @@ export class BuyerRequest {
@OneToMany(() => Offer, (offer: Offer) => offer.buyerRequest)
offers: Offer[];

@OneToMany(() => Comment, (comment: Comment) => comment.buyerRequest)
comments: Comment[];

@CreateDateColumn({ name: 'created_at' })
createdAt: Date;

Expand Down
12 changes: 0 additions & 12 deletions src/modules/comments/comments.module.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/modules/comments/controllers/comments.controller.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/modules/comments/dto/create-comment.dto.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/modules/comments/dto/update-comment.dto.ts

This file was deleted.

29 changes: 0 additions & 29 deletions src/modules/comments/entities/comment.entity.ts

This file was deleted.

66 changes: 0 additions & 66 deletions src/modules/comments/services/comments.service.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/modules/comments/tests/comments.controller.spec.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/modules/comments/tests/comments.service.spec.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/modules/users/entities/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Order } from '../../orders/entities/order.entity';
import { UserRole } from '../../auth/entities/user-role.entity';
import { Notification } from '../../notifications/entities/notification.entity';
import { Wishlist } from '../../wishlist/entities/wishlist.entity';
import { Comment } from '@/modules/comments/entities/comment.entity';

@Entity('users')
export class User {
Expand Down Expand Up @@ -38,9 +37,6 @@ export class User {
@OneToMany(() => Wishlist, (wishlist) => wishlist.user)
wishlist: Wishlist[];

@OneToMany(() => Comment, (comment) => comment.user)
comments: Comment[];

@CreateDateColumn()
createdAt: Date;

Expand Down
76 changes: 0 additions & 76 deletions test/comments.e2e-spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions test/factories/buyer-request.factory.ts

This file was deleted.

Loading
Loading