From 88abeb89ee27bd8075ac077315c23640d59d53e0 Mon Sep 17 00:00:00 2001 From: Paul Esch-Laurent Date: Fri, 2 Dec 2022 10:56:54 -0600 Subject: [PATCH] wip: todos --- .../services/store/mattermostauthlayer/mattermostauthlayer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/services/store/mattermostauthlayer/mattermostauthlayer.go b/server/services/store/mattermostauthlayer/mattermostauthlayer.go index 128c049ee..35a2bcdbc 100644 --- a/server/services/store/mattermostauthlayer/mattermostauthlayer.go +++ b/server/services/store/mattermostauthlayer/mattermostauthlayer.go @@ -1074,6 +1074,7 @@ func (s *MattermostAuthLayer) GetBoardsHistory(modifiedSince int, includeDeleted Select("*"). // TODO: specify From(s.tablePrefix + "boards_history as bh"). Where(sq.Gt{"bh.update_at": modifiedSince}) + // TODO: order_by if !includeDeleted { query = query.Where(sq.Eq{"bh.delete_at": 0}) @@ -1107,6 +1108,7 @@ func (s *MattermostAuthLayer) GetBlocksHistory(modifiedSince int, includeDeleted Select("*"). // TODO: specify From(s.tablePrefix + "blocks_history as bh"). Where(sq.Gt{"bh.update_at": modifiedSince}) + // TODO: order_by if !includeDeleted { query = query.Where(sq.Eq{"bh.delete_at": 0}) @@ -1131,7 +1133,7 @@ func (s *MattermostAuthLayer) GetBlocksHistory(modifiedSince int, includeDeleted rows, err := query.Query() if err != nil { - s.logger.Error(`GetBoardsHistory ERROR`, mlog.Err(err)) + s.logger.Error(`GetBlocksHistory ERROR`, mlog.Err(err)) return nil, err } defer s.CloseRows(rows)