chore: fmt

This commit is contained in:
Michael Abebe
2026-05-12 16:50:18 +03:00
parent 4540d35215
commit 1c5ee19388
181 changed files with 1492 additions and 1100 deletions

View File

@@ -5,13 +5,16 @@ import {
FindOptionsWhere,
ObjectLiteral,
Repository,
} from 'typeorm';
} from "typeorm";
export abstract class BaseRepository<T extends ObjectLiteral> {
protected constructor(protected readonly repository: Repository<T>) {}
/** Find a single entity by its primary key. */
async findById(id: string, options?: Omit<FindOneOptions<T>, 'where'>): Promise<T | null> {
async findById(
id: string,
options?: Omit<FindOneOptions<T>, "where">,
): Promise<T | null> {
return this.repository.findOne({
...options,
where: { id } as unknown as FindOptionsWhere<T>,