From 13e8c1a4704dd6c22e19fdc1f21b80b4d1dea2fc Mon Sep 17 00:00:00 2001 From: M-Evans Date: Sun, 6 Oct 2024 03:50:38 -0700 Subject: [PATCH] fix file info delete query --- server/services/store/sqlstore/blocks.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/services/store/sqlstore/blocks.go b/server/services/store/sqlstore/blocks.go index bed44b121..e9d30928a 100644 --- a/server/services/store/sqlstore/blocks.go +++ b/server/services/store/sqlstore/blocks.go @@ -427,8 +427,8 @@ func (s *SQLStore) deleteBlockAndChildren(db sq.BaseRunner, blockID string, modi if fileID != "" { deleteFileInfoQuery := s.getQueryBuilder(db). - Update("FileInfo"). - Set("DeleteAt", model.GetMillis()). + Update("file_info"). + Set("delete_at", model.GetMillis()). Where(sq.Eq{"id": fileID}) if _, err := deleteFileInfoQuery.Exec(); err != nil { return err @@ -984,8 +984,8 @@ func (s *SQLStore) deleteBlockChildren(db sq.BaseRunner, boardID string, parentI if len(fileIDs) > 0 { deleteFileInfoQuery := s.getQueryBuilder(db). - Update("FileInfo"). - Set("DeleteAt", model.GetMillis()). + Update("file_info"). + Set("delete_at", model.GetMillis()). Where(sq.Eq{"id": fileIDs}) if _, err := deleteFileInfoQuery.Exec(); err != nil {