Skip to content

Commit

Permalink
addScansByProperty debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
azdak committed Dec 18, 2024
1 parent 7c756ec commit 1893ffd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/routes/addScansByProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ export const addScansByProperty = async ({ request, reply }) => {
const urls = (await graphql({
request,
query: `
query{
urls( where: { property_id: { _eq: $propertyid } } ) {
query($property_id: uuid!){
urls( where: { property_id: { _eq: $property_id } } ) {
urlId: id
url
}
}`,
variables: {
propertyid: request.body.propertyId,
property_id: request.body.propertyId,
},
})).stringify();
})).data;

//await db.clean();

return {
status: "success",
message: urls?.data,
message: urls,
};
};

0 comments on commit 1893ffd

Please sign in to comment.