mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: update return type of findOneByForeignId to include null
This commit is contained in:
parent
4bc783ccbe
commit
29c0912de6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user