From 0ed6b4c123479c2fd397c055b367f7ed9ede24a8 Mon Sep 17 00:00:00 2001 From: John Costa Date: Mon, 14 Apr 2025 09:44:19 +0100 Subject: [PATCH 1/3] debug --- backend/models/user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/models/user.go b/backend/models/user.go index 4a8cae0..3563222 100644 --- a/backend/models/user.go +++ b/backend/models/user.go @@ -4,6 +4,7 @@ import ( "context" "database/sql" "errors" + "fmt" "log" "screenmark/screenmark/.gen/haystack/haystack/model" . "screenmark/screenmark/.gen/haystack/haystack/table" @@ -90,6 +91,8 @@ func (m UserModel) ListWithProperties(ctx context.Context, userId uuid.UUID) ([] images := []ImageWithProperties{} err := listWithPropertiesStmt.QueryContext(ctx, m.dbPool, &images) + + fmt.Println(images) if err != nil { return images, err } From ad14254ecb6167d4720bd852704945571358e51a Mon Sep 17 00:00:00 2001 From: John Costa Date: Mon, 14 Apr 2025 09:50:03 +0100 Subject: [PATCH 2/3] debnug --- backend/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/main.go b/backend/main.go index 9c5da31..63d9c07 100644 --- a/backend/main.go +++ b/backend/main.go @@ -85,6 +85,8 @@ func main() { return } + fmt.Printf("Returned from DB: %+x\n", images) + type DataType struct { Type string `json:"type"` Data any `json:"data"` @@ -121,6 +123,8 @@ func main() { } } + fmt.Println("DataTypes: ", dataTypes) + jsonImages, err := json.Marshal(dataTypes) if err != nil { log.Println(err) From 40ddf737c8206410b9ee66011c53fd314944d8cf Mon Sep 17 00:00:00 2001 From: John Costa Date: Mon, 14 Apr 2025 09:54:09 +0100 Subject: [PATCH 3/3] pushhh --- frontend/src/network/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/network/index.ts b/frontend/src/network/index.ts index 0cd1cbd..be3ec7d 100644 --- a/frontend/src/network/index.ts +++ b/frontend/src/network/index.ts @@ -88,10 +88,10 @@ const eventValidator = strictObject({ StartDateTime: nullable(pipe(string())), EndDateTime: nullable(pipe(string())), Description: nullable(string()), - LocationID: nullable(pipe(string(), uuid())), - Location: nullable(locationValidator), - OrganizerID: nullable(pipe(string(), uuid())), - Organizer: nullable(contactValidator), + // LocationID: nullable(pipe(string(), uuid())), + // Location: nullable(locationValidator), + // OrganizerID: nullable(pipe(string(), uuid())), + // Organizer: nullable(contactValidator), }); const noteValidator = strictObject({