Skip to content

Commit

Permalink
fix(api): Fix build failure due to accidental property deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Nov 8, 2024
1 parent 2f8a7b3 commit 7d1919f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type SubscriberQuery = FilterQuery<SubscriberDBModel> & EnforceEnvOrOrgIds;
export class SubscriberRepository extends BaseRepository<SubscriberDBModel, SubscriberEntity, EnforceEnvOrOrgIds> {
constructor() {
super(Subscriber, SubscriberEntity);
this.subscriber = Subscriber;
}

async findBySubscriberId(
Expand Down Expand Up @@ -153,7 +152,7 @@ export class SubscriberRepository extends BaseRepository<SubscriberDBModel, Subs
}

async estimatedDocumentCount(): Promise<number> {
return this.subscriber.estimatedDocumentCount();
return this._model.estimatedDocumentCount();
}
}

Expand Down

0 comments on commit 7d1919f

Please sign in to comment.