feat: create room endpoint
not really sets the cookie, but returns the rendered index on success
This commit is contained in:
@@ -68,6 +68,6 @@ func (redisRM RedisRM) Get(roomName string) (Room, bool, error) {
|
||||
}
|
||||
|
||||
func (redisRM RedisRM) Save(room Room) error {
|
||||
err := redisRM.Rdb.Set(ctx, roomNameToRedisId(room.Name), room, 0).Err() // maybe even set expiration?
|
||||
err := redisRM.Rdb.Set(ctx, roomNameToRedisId(room.Name), &room, 0).Err() // maybe even set expiration?
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user