From a8fc85a060373259b497ad1a0e62a4637e0f00f4 Mon Sep 17 00:00:00 2001 From: Jamie Vangeysel <32323785+JamieVangeysel@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:55:34 +0100 Subject: [PATCH] use rowsAffected --- src/repositories/directory.repository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repositories/directory.repository.ts b/src/repositories/directory.repository.ts index 5dd65b8..b1608c6 100644 --- a/src/repositories/directory.repository.ts +++ b/src/repositories/directory.repository.ts @@ -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) @@ -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)