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) 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 } diff --git a/frontend/src/network/index.ts b/frontend/src/network/index.ts index 9033c87..4e66de0 100644 --- a/frontend/src/network/index.ts +++ b/frontend/src/network/index.ts @@ -86,10 +86,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({