mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
fix file info delete query
This commit is contained in:
parent
de5e5cc414
commit
13e8c1a470
@ -427,8 +427,8 @@ func (s *SQLStore) deleteBlockAndChildren(db sq.BaseRunner, blockID string, modi
|
|||||||
|
|
||||||
if fileID != "" {
|
if fileID != "" {
|
||||||
deleteFileInfoQuery := s.getQueryBuilder(db).
|
deleteFileInfoQuery := s.getQueryBuilder(db).
|
||||||
Update("FileInfo").
|
Update("file_info").
|
||||||
Set("DeleteAt", model.GetMillis()).
|
Set("delete_at", model.GetMillis()).
|
||||||
Where(sq.Eq{"id": fileID})
|
Where(sq.Eq{"id": fileID})
|
||||||
if _, err := deleteFileInfoQuery.Exec(); err != nil {
|
if _, err := deleteFileInfoQuery.Exec(); err != nil {
|
||||||
return err
|
return err
|
||||||
@ -984,8 +984,8 @@ func (s *SQLStore) deleteBlockChildren(db sq.BaseRunner, boardID string, parentI
|
|||||||
|
|
||||||
if len(fileIDs) > 0 {
|
if len(fileIDs) > 0 {
|
||||||
deleteFileInfoQuery := s.getQueryBuilder(db).
|
deleteFileInfoQuery := s.getQueryBuilder(db).
|
||||||
Update("FileInfo").
|
Update("file_info").
|
||||||
Set("DeleteAt", model.GetMillis()).
|
Set("delete_at", model.GetMillis()).
|
||||||
Where(sq.Eq{"id": fileIDs})
|
Where(sq.Eq{"id": fileIDs})
|
||||||
|
|
||||||
if _, err := deleteFileInfoQuery.Exec(); err != nil {
|
if _, err := deleteFileInfoQuery.Exec(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user