diff --git a/pkg/service/recordingservice.go b/pkg/service/recordingservice.go index ab84a37e3..a63edf991 100644 --- a/pkg/service/recordingservice.go +++ b/pkg/service/recordingservice.go @@ -66,9 +66,12 @@ func (s *RecordingService) StartRecording(ctx context.Context, req *livekit.Star Id: recordingID, Active: true, } - if template := req.Input.(*livekit.StartRecordingRequest_Template); template != nil { + + switch template := req.Input.(type) { + case *livekit.StartRecordingRequest_Template: ri.RoomName = template.Template.RoomName } + logger.Debugw("recording started", "recordingID", recordingID) s.telemetry.RecordingStarted(ctx, ri) diff --git a/pkg/service/wire_gen.go b/pkg/service/wire_gen.go index 7c2853612..0570b3e6f 100644 --- a/pkg/service/wire_gen.go +++ b/pkg/service/wire_gen.go @@ -1,8 +1,7 @@ // Code generated by Wire. DO NOT EDIT. //go:generate go run github.com/google/wire/cmd/wire -//go:build !wireinject -// +build !wireinject +//+build !wireinject package service