Skip to content

Commit

Permalink
fix: applied host to define environment/branch
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 8, 2024
1 parent 29e794d commit 6931a9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class CoCreateAcme {
if (challenge.type === 'http-01') {
const httpChallenge = await self.crud.send({
method: 'object.create',
host,
array: 'files',
object: {
"content-type": "text/plain",
Expand Down Expand Up @@ -150,6 +151,7 @@ class CoCreateAcme {
if (challenge.type === 'http-01') {
self.crud.send({
method: 'object.delete',
host,
array: 'files',
object: {
_id: challenge_id
Expand All @@ -169,6 +171,7 @@ class CoCreateAcme {

this.crud.send({
method: 'object.update',
host,
array: 'organizations',
object: {
_id: organization_id,
Expand Down

0 comments on commit 6931a9b

Please sign in to comment.