Fix delimiter for postgres

This commit is contained in:
Chen-I Lim 2021-03-26 13:55:14 -07:00
parent 725971784b
commit 68f2b5bedb

View file

@ -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) {