Skip to content

Commit

Permalink
fix: item
Browse files Browse the repository at this point in the history
  • Loading branch information
david tjokroaminoto committed May 18, 2023
1 parent ebda039 commit 6e3d288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/functions/query/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const query: ValidatedEventAPIGatewayProxyEvent<void> = async (event) => {
Object.getPrototypeOf(data) === Object.prototype
) {
return formatJSONResponse({ revoked: false, documentHash });
} else if (data && data.documentHash && data.Item.reasonCode !== undefined) {
} else if (data && data.documentHash && data.reasonCode !== undefined) {
return formatJSONResponse({
revoked: true,
documentHash: data.Item.documentHash,
reasonCode: data.Item.reasonCode,
documentHash: data.documentHash,
reasonCode: data.reasonCode,
});
} else {
throw new createError.InternalServerError(
Expand Down

0 comments on commit 6e3d288

Please sign in to comment.