mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Fix taxon service specs
This commit is contained in:
@@ -4,9 +4,7 @@ angular.module("ofn.admin").factory "Taxons", (taxons, $filter) ->
|
||||
@taxons = taxons
|
||||
|
||||
findByIDs: (ids) ->
|
||||
taxons = []
|
||||
taxons.push taxon for taxon in @taxons when taxon.id.toString() in ids.split(",")
|
||||
taxons
|
||||
taxon for taxon in @taxons when taxon.id in ids.split(",")
|
||||
|
||||
findByTerm: (term) ->
|
||||
$filter('filter')(@taxons, term)
|
||||
Reference in New Issue
Block a user