2 { name: 'New Test Event', color: 1 } query: SELECT "LocationEntity"."createdat" AS…
- User
2 { name: 'New Test Event', color: 1 } query: SELECT "LocationEntity"."created_at" AS "LocationEntity_created_at", "LocationEntity"."updated_at" AS "LocationEntity_updated_at", "LocationEntity"."id" AS "LocationEntity_id", "LocationEntity"."name" AS "LocationEntity_name", "LocationEntity"."color" AS "LocationEntity_color" FROM "location" "LocationEntity" WHERE ("LocationEntity"."id" = $1) LIMIT 1 -- PARAMETERS: [2] [Nest] 3420 - 06/07/2023, 6:37:21 PM ERROR [ExceptionsHandler] Class constructor LocationDto cannot be invoked without 'new' TypeError: Class constructor LocationDto cannot be invoked without 'new' any ideas on why this is
- Assistant
happening?
It seems like there is an issue with how the LocationDto class is being instantiated. The error message suggests that LocationDto is a class that requires the 'new' keyword to be used when creating a new instance of it. Without seeing more of the code, it's difficult to determine the exact cause of the error, but it could be due to a missing 'new' keyword when instantiating the LocationDto class, or to a problem with the class definition itself.