Skip to content

Commit

Permalink
fix: tiny lambda code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanie committed Nov 29, 2023
1 parent 44ef50a commit 9349c8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions amplify/backend/api/colonycdapp/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1467,11 +1467,11 @@ type ColonyMemberInvite @model {
"""
id: ID!
"""
Colony ID associated with the Domain
Colony ID associated with the ColonyMemberInvite
"""
colonyId: ID!
"""
Colony associated with the Domain
Colony associated with the ColonyMemberInvite
"""
colony: Colony! @belongsTo(fields: ["colonyId"])
"""
Expand Down
4 changes: 2 additions & 2 deletions amplify/backend/function/validateUserInvite/src/graphql.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
getColonyMemberInvite: /* GraphQL */ `
query GetColonyMemberInvite($id: ID!) {
getColonyByAddress(id: $id) {
query GetColonyMemberInvite($colonyAddress: ID!) {
getColonyByAddress(id: $colonyAddress) {
items {
colonyMemberInvite {
id
Expand Down
2 changes: 0 additions & 2 deletions amplify/backend/function/validateUserInvite/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const setEnvVariables = async () => {
* @type {import('@types/aws-lambda').APIGatewayProxyHandler}
*/
exports.handler = async (event) => {
console.log(`EVENT: ${JSON.stringify(event)}`);

const { colonyAddress, inviteCode, userAddress } =
event.arguments?.input || {};

Expand Down

0 comments on commit 9349c8c

Please sign in to comment.