Skip to content

Commit

Permalink
use rowsAffected
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieVangeysel committed Dec 13, 2024
1 parent 0af501f commit a8fc85a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repositories/directory.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class Directory {
return {
error,
verified,
result: result.recordsets[1][0] || false
result: result.rowsAffected[1] > 0
}
} else {
throw new Error(error)
Expand All @@ -175,7 +175,7 @@ export default class Directory {
return {
error,
verified,
result: result.recordsets[1][0] || false
result: result.rowsAffected[1] > 0
}
} else {
throw new Error(error)
Expand Down

0 comments on commit a8fc85a

Please sign in to comment.