You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's working perfectly and transforms the array of image _ids into an array of Strings (the URLs of the images).
Now the thing is I'd like to have at least one image inside the array. That means if the offer object does not have any images (empty array), then I want to react and fill it with the URL of the default image.
It would be great if there's a way to do this with screener as I'd like to keep the logic away from the controller.
The text was updated successfully, but these errors were encountered:
Thanks for creating screener, I'm using it for our mobile API.
I have an
offer
object and my filter looks like thisand
image
looks likeIt's working perfectly and transforms the array of image
_id
s into an array of Strings (the URLs of the images).Now the thing is I'd like to have at least one image inside the array. That means if the offer object does not have any images (empty array), then I want to react and fill it with the URL of the default image.
It would be great if there's a way to do this with screener as I'd like to keep the logic away from the controller.
The text was updated successfully, but these errors were encountered: