Skip to content

Commit

Permalink
fix: validates if cloudSyncAnnouncement is not empty before adding li…
Browse files Browse the repository at this point in the history
…cense object
  • Loading branch information
lucas-a-pelegrino authored and ggazzo committed Nov 20, 2024
1 parent 49d8bde commit 84e7f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/ee/server/api/licenses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ API.v1.addRoute(

return API.v1.success({
license,
...(cloudSyncAnnouncement && { cloudSyncAnnouncement }),
...(Object.keys(cloudSyncAnnouncement).length !== 0 && { cloudSyncAnnouncement }),
});
},
},
Expand Down

0 comments on commit 84e7f40

Please sign in to comment.