Skip to content

Commit

Permalink
Merge pull request #1145 from assemblee-virtuelle/1144-filtre-en-fect…
Browse files Browse the repository at this point in the history
…hcontainer-devrait-avoir-une-logique-et

change some to every to filter params apply in fetchContainer
  • Loading branch information
simonLouvet authored Aug 21, 2023
2 parents 6a862e0 + e6e3606 commit e094f0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const fetchContainers = async (containers, resourceId, params, config) => {

if (Object.keys(params.filter).length > 0) {
returnData = returnData.filter(resource => {
return Object.entries(params.filter).some(([k, v]) => {
return Object.entries(params.filter).every(([k, v]) => {
if (k == 'q') {
return Object.entries(resource).some(([kr, vr]) => {
if (!isobject(vr)) {
Expand Down
8 changes: 4 additions & 4 deletions src/middleware/tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/jwt/*.key
*/jwt/*.key.pub

*/actors/*.key
*/actors/*.key.pub
*/jwt/*.key
*/jwt/*.key.pub
/actors/*.key
/actors/*.key.pub
/jwt/*.key
/jwt/*.key.pub

0 comments on commit e094f0e

Please sign in to comment.