SkygearIO / skygear-SDK-iOS

Skygear SDK for iOS
https://skygear.io
Other
10 stars 28 forks source link

SKYLambdaOperation should accept null result #118

Closed howawong closed 7 years ago

howawong commented 7 years ago

In the following lambda,

def handle_delete_conversation_lambda(conversation_id):
    __validate_user_is_admin(conversation_id)
     conversation = Conversation.fetch_one(conversation_id)
     handle_admins_lambda(conversation_id, conversation['admin_ids'], False)
     handle_remove_participants(conversation_id,
     conversation['participant_ids'])

the response is

{"result": null}

However, SKYLambdaOperation throws an error.

The expected result should be returning nil.