Skip to content

Commit

Permalink
Tweak error message
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Nov 15, 2024
1 parent 6a62ebc commit e13643b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/repositories/alert-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class AlertRepository extends BaseRepository {
if (response.rowCount !== 1) {
throw new ApiExecuteSQLError('Failed to update alert', [

Check warning on line 121 in api/src/repositories/alert-repository.ts

View check run for this annotation

Codecov / codecov/patch

api/src/repositories/alert-repository.ts#L121

Added line #L121 was not covered by tests
'AlertRepository->updateAlert',
'row[0] was null or undefined, expected row[0] != null'
'rowCount was !== 1, expected rowCount === 1'
]);
}

Expand Down Expand Up @@ -151,7 +151,7 @@ export class AlertRepository extends BaseRepository {
if (response.rowCount !== 1) {
throw new ApiExecuteSQLError('Failed to create alert', [

Check warning on line 152 in api/src/repositories/alert-repository.ts

View check run for this annotation

Codecov / codecov/patch

api/src/repositories/alert-repository.ts#L152

Added line #L152 was not covered by tests
'AlertRepository->createAlert',
'row[0] was null or undefined, expected row[0] != null'
'rowCount was !== 1, expected rowCount === 1'
]);
}

Expand Down Expand Up @@ -180,7 +180,7 @@ export class AlertRepository extends BaseRepository {
if (response.rowCount !== 1) {
throw new ApiExecuteSQLError('Failed to delete alert', [

Check warning on line 181 in api/src/repositories/alert-repository.ts

View check run for this annotation

Codecov / codecov/patch

api/src/repositories/alert-repository.ts#L181

Added line #L181 was not covered by tests
'AlertRepository->deleteAlert',
'row[0] was null or undefined, expected row[0] != null'
'rowCount was !== 1, expected rowCount === 1'
]);
}

Expand Down

0 comments on commit e13643b

Please sign in to comment.