Skip to content

Commit

Permalink
refactor(uuid-query): remove call to db layer if uuid not found
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Jul 3, 2024
1 parent a70f4c7 commit a04b25a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/server/src/schema/uuid/abstract-uuid/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,9 +529,7 @@ async function resolveUuidFromDatabase(
}
}

const uuidFromDBLayer = await DatabaseLayer.makeRequest('UuidQuery', { id })

return UuidDecoder.is(uuidFromDBLayer) ? uuidFromDBLayer : null
return null
}

export async function setUuidState(
Expand Down

0 comments on commit a04b25a

Please sign in to comment.