Skip to content

Commit

Permalink
fix unsupported operation
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadmitt committed Feb 8, 2024
1 parent c8fb085 commit 86d13bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gateway/gateway.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class GatewayService {
throw new BadRequestException('Namehash missmatch');
}

if (supportedFunctions.includes(functionName)) {
if (!supportedFunctions.includes(functionName)) {
throw new BadRequestException('Unsupported opperation ' + functionName);
}

Expand Down
1 change: 1 addition & 0 deletions src/gateway/resolver/database.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class GatewayDatabaseResolver implements GatewayResolver {
if (!subname && !subname.id) {
throw new NotFoundException(`Subname not found`);
}
console.log("Found subname for name " + ensName, JSON.stringify(subname));
return subname;
};
}

0 comments on commit 86d13bb

Please sign in to comment.