Skip to content

Commit

Permalink
Fix sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed May 7, 2021
1 parent 140f159 commit be32093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/share/cache/cbox/cbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func New(m map[string]interface{}) (cache.Warmup, error) {
}

func (m *manager) GetResourceInfos() ([]*provider.ResourceInfo, error) {
query := "select coalesce(fileid_prefix, '') as fileid_prefix, coalesce(item_source, '') as item_source WHERE (orphan = 0 or orphan IS NULL)"
query := "select coalesce(fileid_prefix, '') as fileid_prefix, coalesce(item_source, '') as item_source FROM oc_share WHERE (orphan = 0 or orphan IS NULL)"
rows, err := m.db.Query(query)
if err != nil {
return nil, err
Expand Down

0 comments on commit be32093

Please sign in to comment.