CollActionteam / collaction_backend

Backend code for CollAction
6 stars 4 forks source link

Crowdaction participation #14

Closed rubenhorn closed 2 years ago

rubenhorn commented 2 years ago

Comment by @zen37:

aggregator/main.go

    for k, v := range aggregations {
        // TODO implement
        fmt.Printf("Change participation count of %s by %d\n", k, v)

anything else to implement here?

api/main.go func doesParticipationExist( wouldn't it be better to be called participationExists(

json, _ := json.Marshal(participation.ParticipationEvent{ return error, very unlikely an error will happen here but just to be consistent

var err error any advantage declaring the variable in advance, one line fewer if we don't :)