fix
This commit is contained in:
@@ -5,12 +5,14 @@ import (
|
||||
"net/http"
|
||||
tasks "queues-go/app/storage/mongo/collections"
|
||||
"time"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
)
|
||||
|
||||
type PutRequestBody struct {
|
||||
Payload json.RawMessage `json:"payload"`
|
||||
SecondsToExecute int `json:"seconds_to_execute"`
|
||||
Delay *int `json:"delay"`
|
||||
Payload bson.M `json:"payload"`
|
||||
SecondsToExecute int `json:"seconds_to_execute"`
|
||||
Delay *int `json:"delay"`
|
||||
}
|
||||
|
||||
func Put(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user