Skip to content

Commit

Permalink
Fix fail to call lambda without arguments.
Browse files Browse the repository at this point in the history
refs SkygearIO#276

This bug occurs after adding auto upload asset when calling lambda, sdk will check the arguments if there is any not updated assets.
Update the callLambdaFunction implementation to skip the presave.
  • Loading branch information
carmenlau committed Feb 19, 2019
1 parent c7cf8f0 commit d0d3cb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skygear/src/main/java/io/skygear/skygear/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ public void sendRequest(Request request) {
* @param handler the response handler
*/
public void callLambdaFunction(String name, LambdaResponseHandler handler) {
this.callLambdaFunction(name, (Object[]) null, handler);
LambdaRequest request = new LambdaRequest(name, (Object)null);
request.responseHandler = handler;
this.requestManager.sendRequest(request);
}

/**
Expand Down

0 comments on commit d0d3cb4

Please sign in to comment.