👟 Reproduction steps
When I created a cloud function on Node 22, set it to run on update for database documents and run appwrite functions get-execution to get logs, the output ends with TypeError: Cannot convert undefined or null to object.

The error comes from this specific line, a check for whether the "object" is null seems to be missing.
👍 Expected behavior
It should either log the scheduledAt data or an empty object or null
👎 Actual Behavior
it actually fails with a type error
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
No customised environment, using the appwrite cloud software and the Appwrite SDK
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
👟 Reproduction steps
When I created a cloud function on Node 22, set it to run on update for database documents and run
appwrite functions get-executionto get logs, the output ends withTypeError: Cannot convert undefined or null to object.The error comes from this specific line, a check for whether the "object" is null seems to be missing.
👍 Expected behavior
It should either log the scheduledAt data or an empty object or null
👎 Actual Behavior
it actually fails with a type error
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
No customised environment, using the appwrite cloud software and the Appwrite SDK
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?