Skip to content

Commit

Permalink
Merge pull request #83 from ssi-dk/fix/aggregation
Browse files Browse the repository at this point in the history
fix: added st object check before convert to array, mount files
  • Loading branch information
allanhvam authored Jun 27, 2024
2 parents 67e8b61 + aa5be97 commit 81d417a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion bifrost/bifrost_listener/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,21 @@ def agg_pipeline(changed_ids=None):
"$filter": {
"input": {
"$map": {
"input": {"$objectToArray": "$st"},
"input": {
'$cond': {
'if': {
'$eq': [
{
'$type': '$st'
}, 'object'
]
},
'then': {
'$objectToArray': '$st'
},
'else': []
}
},
"in": {
"k": "$$this.k",
"v": "$$this.v",
Expand Down
1 change: 1 addition & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ services:
volumes:
- ./logs:/logs
- ./microreact_defaults.js:/app/config.js
- ./files/:/app/files/
depends_on:
- "bifrost_db"
- "mailhog"
Expand Down

0 comments on commit 81d417a

Please sign in to comment.