new endpoints, budget adjustment

This commit is contained in:
Gabe Farrell 2023-04-11 22:41:39 -04:00
parent cc36b80e72
commit c4047a36cc
9 changed files with 276 additions and 20 deletions

View file

@ -153,7 +153,7 @@ func NewTransaction(w http.ResponseWriter, r *http.Request) {
update := bson.D{primitive.E{Key: "$set", Value: bson.D{primitive.E{Key: r.FormValue("type"), Value: newArr}}}}
userCollection.UpdateOne(context.TODO(), filter, update, opts)
w.Write([]byte("{\"status\": 200}"))
w.Write([]byte("{\"status\":200}"))
}
func NewRecurring(w http.ResponseWriter, r *http.Request) {
@ -243,6 +243,6 @@ func NewRecurring(w http.ResponseWriter, r *http.Request) {
update := bson.D{primitive.E{Key: "$set", Value: bson.D{primitive.E{Key: r.FormValue("type"), Value: newArr}}}}
userCollection.UpdateOne(context.TODO(), filter, update, opts)
w.Write([]byte("{\"status\": 200}"))
w.Write([]byte("{\"status\":200}"))
}