🐛 Bug Report: messaging.createPush
Function Fails with Optional Parameters in Node.js Cloud Function
#8287
Closed
2 tasks done
Labels
bug
Something isn't working
👟 Reproduction steps
I'm encountering an issue when using the
messaging.createPush
function within a Node.js cloud function. Specifically, the function fails when optional parameters are set tonull
.Steps to Reproduce:
null
with an empty string''
:👍 Expected behavior
Works without throwing any errors about optional parameters 😁
👎 Actual Behavior
null
the following error is logged in the Appwrite container:''
the following error is logged:It seems that the issue originates from the declaration of the following function :
app/controllers/api/messaging.php
The optional character is missing
string $action
👉?string $action
🎲 Appwrite version
Version 1.5.x
💻 Operating system
Linux
🧱 Your Environment
Appwrite Version 1.5.7
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: