feat:#16 added frontend button

This commit is contained in:
Elmar Kresse
2024-11-04 15:59:28 +01:00
parent 42172fb0a5
commit 3265c5515f
3 changed files with 62 additions and 3 deletions

View File

@ -2,10 +2,10 @@ package grpc
import (
"context"
"fmt"
"github.com/pocketbase/pocketbase"
pb "htwkalender/common/genproto/modules"
"htwkalender/data-manager/service/db"
"log/slog"
)
type RoomServiceHandler struct {
@ -20,7 +20,7 @@ func (s *RoomServiceHandler) GetRoomEvents(ctx context.Context, in *pb.GetRoomRe
"room", in.Room,
)
fmt.Errorf("Getting events for room %s", in.Room)
slog.Error("GetRoomEvents", "room", in.Room)
// get events from database by room
events, err := db.GetRoomSchedule(s.app, in.Room)