Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iwate committed Jun 26, 2024
2 parents fc0bb00 + d71c07b commit cabbcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ async function upsertTemplate(template) {
}
function ep() {
const url = process.env[config.apiEndpointEnvKey]
return url.endsWith('/') ? url.splice(0, url.length - 1) : url
return url.endsWith('/') ? url.slice(0, url.length - 1) : url
}
function auth() {
return 'Basic ' + Buffer.from(`${process.env[config.apiUsernameEnvKey]}:${process.env[config.apiPasswordEnvKey]}`).toString('base64')
Expand All @@ -268,4 +268,4 @@ function escapeTemplate(text) {
return text.replace(/\{\{/g, '{{<"{{"}}')
}

main().catch(message => console.error(message));
main().catch(message => console.error(message));

0 comments on commit cabbcd6

Please sign in to comment.