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
I was using the plugin to warm up my functions but I came across a bug. If I don't pass the "role" object in the yml, the plugin gives me an error. However, when I looked at the code, I saw that if there is no role being passed, it creates a default one. The validation that is being done to validate whether the resources object exists is not working, because null is also an object and it can't create the default role because it's not falling for this validation.
In this image, you can see that i'm not passing the role object
Error:
Error location:
Possible correction:
Change this validation and check if is a falsy value instead check the type.
The text was updated successfully, but these errors were encountered:
Hi!
I was using the plugin to warm up my functions but I came across a bug. If I don't pass the "role" object in the yml, the plugin gives me an error. However, when I looked at the code, I saw that if there is no role being passed, it creates a default one. The validation that is being done to validate whether the resources object exists is not working, because null is also an object and it can't create the default role because it's not falling for this validation.
In this image, you can see that i'm not passing the role object
Error:
Error location:
Possible correction:
Change this validation and check if is a falsy value instead check the type.
The text was updated successfully, but these errors were encountered: