Skip to content

Commit a6c2bf2

Browse files
committed
fix: feedbacks
1 parent e92b88f commit a6c2bf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GraphQL/loaders/configQueries.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const configValue = async (context, paramName) => {
2222
const params = globalConfig.params || {};
2323
const masterKeyOnly = globalConfig.masterKeyOnly || {};
2424

25-
if (params && params[paramName] !== undefined && masterKeyOnly && masterKeyOnly[paramName] !== undefined) {
26-
return { value: params[paramName], isMasterKeyOnly: masterKeyOnly[paramName] };
25+
if (params[paramName] !== undefined) {
26+
return { value: params[paramName], isMasterKeyOnly: masterKeyOnly[paramName] ?? null };
2727
}
2828

2929
return { value: null, isMasterKeyOnly: null };
@@ -50,7 +50,7 @@ const load = (parseGraphQLSchema) => {
5050
type: new GraphQLNonNull(parseGraphQLSchema.configValueType),
5151
async resolve(_source, args, context) {
5252
try {
53-
return configValue(context, args.paramName);
53+
return await configValue(context, args.paramName);
5454
} catch (e) {
5555
parseGraphQLSchema.handleError(e);
5656
}

0 commit comments

Comments
 (0)