From 76d09db5a91c352cb8f239bcfb99c43da1ec65cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Bouzour=C3=A8ne?= Date: Mon, 24 Mar 2025 20:03:58 +0100 Subject: [PATCH] Fix wrong error returned in fix-fields-order --- controllers/debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/debug.go b/controllers/debug.go index 66bdefb..30a0624 100644 --- a/controllers/debug.go +++ b/controllers/debug.go @@ -136,7 +136,7 @@ func DebugFixFieldsOrder(c *fiber.Ctx) error { ) if result2.Error != nil { - return result.Error + return result2.Error } if result2.RowsAffected > 0 {