We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f283815 commit 3b3f380Copy full SHA for 3b3f380
src/core/infra/repositories/ApiRepository.ts
@@ -77,10 +77,8 @@ export abstract class ApiRepository {
77
let requestData = data
78
79
if (contentType === ApiConstants.CONTENT_TYPE_APPLICATION_JSON) {
80
- if (typeof data === 'object') {
+ if (typeof data === 'object' || typeof data === 'boolean') {
81
requestData = JSON.stringify(data)
82
- } else if (typeof data === 'boolean') {
83
- requestData = data.toString()
84
}
85
86
0 commit comments