mirror of
https://github.com/gabehf/BudgetBuddy.git
synced 2026-03-17 03:06:40 -07:00
new endpoints, budget adjustment
This commit is contained in:
parent
cc36b80e72
commit
c4047a36cc
9 changed files with 276 additions and 20 deletions
|
|
@ -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}"))
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue