Skip to content

Commit 4407b30

Browse files
fix: adding clear_invalid only when not null
1 parent f5d4fed commit 4407b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ exports.update = function update(public_id, callback, options = {}) {
134134
if (options.moderation_status != null) {
135135
params.moderation_status = options.moderation_status;
136136
}
137-
if (options.clear_invalid !== null) {
137+
if (options.clear_invalid != null) {
138138
params.clear_invalid = options.clear_invalid;
139139
}
140140
return call_api("post", uri, params, callback, options);

0 commit comments

Comments
 (0)