diff --git a/bbb-graphql-actions/deploy.sh b/bbb-graphql-actions/deploy.sh index c7cac8dafb..0190ba913c 100755 --- a/bbb-graphql-actions/deploy.sh +++ b/bbb-graphql-actions/deploy.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +if [ "$EUID" -ne 0 ]; then + echo "Please run this script as root ( or with sudo )" ; + exit 1; +fi; + + cd "$(dirname "$0")" for var in "$@" diff --git a/bbb-graphql-actions/src/actions/pollCreate.ts b/bbb-graphql-actions/src/actions/pollCreate.ts index b3fd86b405..e38e8bf194 100644 --- a/bbb-graphql-actions/src/actions/pollCreate.ts +++ b/bbb-graphql-actions/src/actions/pollCreate.ts @@ -1,5 +1,6 @@ import { RedisMessage } from '../types'; import {throwErrorIfNotPresenter} from "../imports/validation"; +import {ValidationError} from "../types/ValidationError"; export default function buildRedisMessage(sessionVariables: Record, input: Record): RedisMessage { throwErrorIfNotPresenter(sessionVariables); @@ -26,7 +27,13 @@ export default function buildRedisMessage(sessionVariables: Record