Skip to content

Commit

Permalink
fix provider imports (refs xatkit-bot-platform/xatkit-runtime#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdaniel committed Sep 4, 2019
1 parent d31da37 commit 2f6f4e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.xatkit.core.XatkitCore;
import com.xatkit.core.platform.RuntimePlatform;
import com.xatkit.core.server.RestHandlerFactory;
import fr.inria.atlanmod.commons.log.Log;
import org.apache.commons.configuration2.Configuration;

Expand Down Expand Up @@ -47,7 +48,7 @@ public class ZapierPlatform extends RuntimePlatform {
public ZapierPlatform(XatkitCore xatkitCore, Configuration configuration) {
super(xatkitCore, configuration);
this.xatkitCore.getXatkitServer().registerRestEndpoint("/zapier/callback",
((headers, params, content) -> {
RestHandlerFactory.createJsonRestHandler((headers, params, content) -> {
String actionId = content.getAsJsonObject().get(ACTION_ID_FIELD).getAsString();
String value = content.getAsJsonObject().get(VALUE_FIELD).getAsString();
this.callbackValues.put(actionId, value);
Expand Down

0 comments on commit 2f6f4e8

Please sign in to comment.