diff --git a/server/services/store/sqlstore/blocks.go b/server/services/store/sqlstore/blocks.go index a46c2f953..63bc30716 100644 --- a/server/services/store/sqlstore/blocks.go +++ b/server/services/store/sqlstore/blocks.go @@ -21,7 +21,7 @@ func (s *SQLStore) latestsBlocksSubquery(c store.Container) sq.SelectBuilder { FromSelect(internalQuery, "a"). Where(sq.Eq{"rn": 1}). Where(sq.Eq{"delete_at": 0}). - Where(sq.Eq{"coalesce(workspace_id, \"\")": c.WorkspaceID}) + Where(sq.Eq{"coalesce(workspace_id, '')": c.WorkspaceID}) } func (s *SQLStore) GetBlocksWithParentAndType(c store.Container, parentID string, blockType string) ([]model.Block, error) {