From 1d924654dc0496c2591c35cab7856c24551b9955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20devkcud=20Albanese=20Junior?= Date: Fri, 22 Nov 2024 20:41:28 -0300 Subject: [PATCH] fix: Remove non existent columns --- internal/service/repository/component.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/service/repository/component.go b/internal/service/repository/component.go index 5716675..18aa606 100644 --- a/internal/service/repository/component.go +++ b/internal/service/repository/component.go @@ -719,7 +719,6 @@ func (cr *componentRepository) ClearTrash(userID uint) error { tx := cr.db.Begin() if err := tx.Unscoped(). - Where("deleted_at IS NOT NULL"). Where(` EXISTS ( SELECT 1 @@ -734,7 +733,6 @@ func (cr *componentRepository) ClearTrash(userID uint) error { } if err := tx.Unscoped(). - Where("deleted_at IS NOT NULL"). Where(` EXISTS ( SELECT 1 @@ -749,7 +747,6 @@ func (cr *componentRepository) ClearTrash(userID uint) error { } if err := tx.Unscoped(). - Where("deleted_at IS NOT NULL"). Where(` EXISTS ( SELECT 1