Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Jul 10, 2024
1 parent 2f9404f commit 3cb1f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dao/update_ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func EventStateClosedTicker() {
filter.EqualString("event.event_state.state", "finished")
pipeline := models.TakingPipeline().Match(filter.Bson()).Pipe
takings := []models.Taking{}
if err := TakingCollection.Aggregate(context.Background(), pipeline, takings); err != nil {
if err := TakingCollection.Aggregate(context.Background(), pipeline, &takings); err != nil {
log.Print(err)
}
for i := range takings {
Expand Down
2 changes: 1 addition & 1 deletion models/taking.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TakingPipeline() *vmdb.Pipeline {
pipe.Lookup(SourceCollection, "_id", "taking_id", "sources")
pipe.LookupUnwind(CrewCollection, "crew_id", "_id", "crew")
pipe.LookupUnwind(EventCollection, "_id", "taking_id", "event")
pipe.LookupList(ArtistCollection, "artist_ids", "_id", "event.artists")
//pipe.LookupList(ArtistCollection, "event.artist_ids", "_id", "event.artists")
pipe.Append(bson.D{{Key: "$addFields", Value: bson.D{
{Key: "state.wait.amount", Value: bson.D{{Key: "$sum", Value: "$wait.money.amount"}}},
}}})
Expand Down

0 comments on commit 3cb1f10

Please sign in to comment.