Get room from override

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-08-12 13:01:39 +01:00
parent a9f79c3c27
commit 4b25a2722e
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -120,7 +120,7 @@ func HandlePayloadPost(c *fiber.Ctx) error {
overrideRoom := c.Query("roomID") overrideRoom := c.Query("roomID")
if overrideRoom != "" { if overrideRoom != "" {
fmt.Printf("Override room from query string: %s\n", overrideRoom) fmt.Printf("Override room from query string: %s\n", overrideRoom)
payload.RoomID = overrideRoom payload.RoomID = getRoom(overrideRoom)
} }
overrideType := c.Query("type") overrideType := c.Query("type")
if overrideType != "" { if overrideType != "" {