From 182d364e696174ffe7378a64d51bf0b6dc9eedfc Mon Sep 17 00:00:00 2001 From: Osahenrumwen Aigbogun Date: Sat, 7 Dec 2024 14:09:01 +0100 Subject: [PATCH] Adjusted where insert is used --- src/Libs/Abstract/TableTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libs/Abstract/TableTrait.php b/src/Libs/Abstract/TableTrait.php index d672311..a329828 100644 --- a/src/Libs/Abstract/TableTrait.php +++ b/src/Libs/Abstract/TableTrait.php @@ -109,7 +109,7 @@ public function record_by_id(string $id, bool $even_deleted = false) : array public function new_record(array $columns) : bool { self::init(); - return self::orm(self::$table)->insert($columns); + return (bool) self::orm(self::$table)->insert($columns); } public function edit_record(string $job_id, array $columns, ?string $updated_by = null) : bool