@doist/todoist-sdk 14.0.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -57,7 +57,7 @@ class CommentClient extends base_client_1.BaseClient {
|
|
|
57
57
|
relativePath: endpoints_1.ENDPOINT_REST_COMMENTS,
|
|
58
58
|
apiToken: this.authToken,
|
|
59
59
|
customFetch: this.customFetch,
|
|
60
|
-
payload: Object.assign(Object.assign({}, rest), (uidsToNotify ?
|
|
60
|
+
payload: Object.assign(Object.assign({}, rest), ((uidsToNotify === null || uidsToNotify === void 0 ? void 0 : uidsToNotify.length) ? { uidsToNotify } : {})),
|
|
61
61
|
requestId: requestId,
|
|
62
62
|
});
|
|
63
63
|
return (0, validators_1.validateComment)(response.data);
|
|
@@ -54,7 +54,7 @@ export class CommentClient extends BaseClient {
|
|
|
54
54
|
relativePath: ENDPOINT_REST_COMMENTS,
|
|
55
55
|
apiToken: this.authToken,
|
|
56
56
|
customFetch: this.customFetch,
|
|
57
|
-
payload: Object.assign(Object.assign({}, rest), (uidsToNotify ?
|
|
57
|
+
payload: Object.assign(Object.assign({}, rest), ((uidsToNotify === null || uidsToNotify === void 0 ? void 0 : uidsToNotify.length) ? { uidsToNotify } : {})),
|
|
58
58
|
requestId: requestId,
|
|
59
59
|
});
|
|
60
60
|
return validateComment(response.data);
|
package/package.json
CHANGED