⚡ Changes name change parameter source
This commit is contained in:
parent
6c8625dead
commit
9547c72f5a
@ -232,7 +232,7 @@ func main() {
|
|||||||
})))
|
})))
|
||||||
|
|
||||||
app.POST("/admin/name/:id", authed(idparam(func(c echo.Context, id uuid.UUID) error {
|
app.POST("/admin/name/:id", authed(idparam(func(c echo.Context, id uuid.UUID) error {
|
||||||
name := c.Param("name")
|
name := c.QueryParam("name")
|
||||||
if name == "" {
|
if name == "" {
|
||||||
return c.JSON(http.StatusBadRequest, "missing field 'name'")
|
return c.JSON(http.StatusBadRequest, "missing field 'name'")
|
||||||
}
|
}
|
||||||
@ -296,7 +296,6 @@ func keys(c echo.Context) error {
|
|||||||
fmt.Printf("%s client %s crashed (couldn't open file)\n", time.Now().Format(TimeFormat), client.ID)
|
fmt.Printf("%s client %s crashed (couldn't open file)\n", time.Now().Format(TimeFormat), client.ID)
|
||||||
now = time.Now()
|
now = time.Now()
|
||||||
|
|
||||||
client.ExitWanted = true
|
|
||||||
client.Connected = false
|
client.Connected = false
|
||||||
client.DisconnectedAt = now
|
client.DisconnectedAt = now
|
||||||
client.UpdatedAt = now
|
client.UpdatedAt = now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user