-
Hello, i'm not sure whether this is a bug or configuration problem. When validating an API the following issue occured: I performed a curl -X PATCH -H 'Authorization: [Filtered]' -H 'Content-Type: application/json' -d '[]' http://localhost:3030/projects/0 The response is the following: {"message":"Empty .update() call detected! Update data does not contain any values to update. This will result in a faulty query. Table: projects. Columns: ."} Although i would expect a 400 Bad Request, since a The relevant configuration is the following: app.use(bodyParser({ jsonStrict: false })); // in app.ts // in projects.class.ts
export const getOptions = (app: Application): KnexAdapterOptions => {
return {
paginate: app.get('paginate'),
Model: app.get('dbClient'),
name: 'projects'
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
i-terzic
Jul 5, 2024
Replies: 1 comment
-
Bug in our own code. 🫨 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
i-terzic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug in our own code. 🫨