diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-09-09 21:34:34 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-09-09 21:34:34 -0400 |
commit | a8be7ef95403a1f4559aeff9695e67ad2030e3b9 (patch) | |
tree | b670fd7f9449ece78f3464d3bd3c0438824de750 /src/server/index.ts | |
parent | 12683de524a0c3021a14f71269e79dc039a17683 (diff) |
restored input parsing rules back to prosemirror and added some news
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 082e9422d..50ce2b14e 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -811,8 +811,8 @@ const EndpointHandlerMap = new Map<GoogleApiServerUtils.Action, GoogleApiServerU ]); app.post(RouteStore.googleDocs + "/:sector/:action", (req, res) => { - let sector: GoogleApiServerUtils.Service = req.params.sector; - let action: GoogleApiServerUtils.Action = req.params.action; + let sector: GoogleApiServerUtils.Service = req.params.sector as GoogleApiServerUtils.Service; + let action: GoogleApiServerUtils.Action = req.params.action as GoogleApiServerUtils.Action; GoogleApiServerUtils.GetEndpoint(GoogleApiServerUtils.Service[sector], { credentials, token }).then(endpoint => { let handler = EndpointHandlerMap.get(action); if (endpoint && handler) { |