File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -203,19 +203,20 @@ const updateDetails = function (
203203 return ;
204204 }
205205
206- var data ;
206+ var data = { } ;
207+ data = {
208+ tags : updateData . tags ,
209+ customCoordinates : updateData . customCoordinates ,
210+ extensions : updateData . extensions ,
211+ webhookUrl : updateData . webhookUrl ,
212+ customMetadata : updateData . customMetadata ,
213+ } ;
214+
207215 if ( updateData . publish )
208216 data = {
217+ ...data ,
209218 publish : updateData . publish ,
210219 } ;
211- else
212- data = {
213- tags : updateData . tags ,
214- customCoordinates : updateData . customCoordinates ,
215- extensions : updateData . extensions ,
216- webhookUrl : updateData . webhookUrl ,
217- customMetadata : updateData . customMetadata ,
218- } ;
219220
220221 var requestOptions = {
221222 url : "https://api.imagekit.io/v1/files/" + fileId + "/details" ,
You can’t perform that action at this time.
0 commit comments