Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
olduh29 committed Dec 7, 2023
1 parent 82cc38c commit 45f67bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ router.get(
async (request, env) =>
{
const tenant = request.params.tenant
try {
const appName = 'cf-d1-provisioning';
var logs = []
console.log(`new D1 for :>${tenant}<`)
Expand All @@ -82,6 +83,13 @@ router.get(
}
return RenderJSON(env,request,{"error":"no tenant name","logs":logs});
}
catch(e) {
return {
'error':`error while provisioning D1 for :>${tenant}}<`,
'exception':e
};
}
}
)


Expand Down

0 comments on commit 45f67bc

Please sign in to comment.