fix: update return type of findOneByForeignId to include null

This commit is contained in:
Aditya 2025-01-27 17:47:26 +05:30
parent 4bc783ccbe
commit 29c0912de6

View File

@ -123,7 +123,7 @@ export class SubscriberRepository extends BaseRepository<
*
* @param id - The foreign ID of the subscriber.
*
* @returns The found subscriber entity.
* @returns The found subscriber entity, or `null` if no subscriber is found.
*/
async findOneByForeignId(id: string): Promise<Subscriber | null> {
const query = this.findByForeignIdQuery(id);