Skip to content

Commit

Permalink
298 Removed undefined as option for findMany from:
Browse files Browse the repository at this point in the history
 - land-use.repository
 - boroughs.repository

Closes #298

	modified:   src/land-use/land-use.repository.ts
  • Loading branch information
horatiorosa committed Jun 7, 2024
1 parent e2af46a commit 8665bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/borough/borough.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class BoroughRepository {
}
}

async findMany(): Promise<FindManyRepo | undefined> {
async findMany(): Promise<FindManyRepo> {
try {
return await this.db.query.borough.findMany();
} catch {
Expand Down
2 changes: 1 addition & 1 deletion src/land-use/land-use.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class LandUseRepository {
private readonly db: DbType,
) {}

async findMany(): Promise<FindManyRepo | undefined> {
async findMany(): Promise<FindManyRepo> {
try {
return await this.db.query.landUse.findMany();
} catch {
Expand Down

0 comments on commit 8665bd7

Please sign in to comment.