Skip to content

Commit

Permalink
refers to #178
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Aug 23, 2024
1 parent 49cbbc7 commit 19b89ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ type (
Creator User `json:"creator" bson:"creator"`
Confirmer User `json:"confirmer" bson:"confirmer"`
HasExternal bool `json:"has_external" bson:"has_external"`
Receipts []ReceiptFile `json:"receipts" bson:"receipts"`
External External `json:"external" bson:"external"`
Modified vmod.Modified `json:"modified" bson:"modified"`
}
Expand Down Expand Up @@ -139,6 +140,7 @@ func DepositPipeline() *vmdb.Pipeline {
pipe.Append(bson.D{{Key: "$addFields", Value: bson.D{{Key: "deposits.deposit_units", Value: "$deposit_units"}}}})
pipe.Append(bson.D{{Key: "$replaceRoot", Value: bson.D{{Key: "newRoot", Value: "$deposits"}}}})
pipe.LookupUnwind(CrewCollection, "crew_id", "_id", "crew")
pipe.Lookup(ReceiptFileCollection, "_id", "deposit_id", "receipts")
return pipe
}

Expand Down

0 comments on commit 19b89ff

Please sign in to comment.