fix: Type problems regarding global variable

This commit is contained in:
Faruk AYDIN
2022-10-06 00:49:24 +03:00
parent 8308265a62
commit 63ffd1f720
7 changed files with 21 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
import Context from '../../types/express/context';
import App from '../../models/app';
import prepareGlobalVariableForConnection from '../../helpers/global-variable/connection';
import globalVariable from '../../helpers/global-variable';
type Params = {
input: {
@@ -24,7 +24,7 @@ const verifyConnection = async (
const authInstance = (await import(`../../apps/${connection.key}2/auth`))
.default;
const $ = prepareGlobalVariableForConnection(connection, app);
const $ = globalVariable(connection, app);
await authInstance.verifyCredentials($);
connection = await connection.$query().patchAndFetch({