Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

fix: change url to call ovh pro api #2252

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/betagouv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ const betaOVH = {
},
createEmailPro: async (id: string, creationData: OvhProCreationData) => {
const primaryEmailAddress = `${id}@${config.domain}`;
const getAccountsUrl = `/email/pro/${config.OVH_EMAIL_PRO_NAME}/service/${config.OVH_EMAIL_PRO_NAME}/account`;
const getAccountsUrl = `/email/pro/${config.OVH_EMAIL_PRO_NAME}/account`;
let availableAccounts;
try {
availableAccounts = await ovh.requestPromised('GET', getAccountsUrl, {
Expand All @@ -580,7 +580,7 @@ const betaOVH = {
`Assigning Ovh Pro account ${accountToBeAssigned} to ${primaryEmailAddress}`
);

const assignAccountUrl = `/email/pro/${config.OVH_EMAIL_PRO_NAME}/service/${config.OVH_EMAIL_PRO_NAME}/account/${accountToBeAssigned}`;
const assignAccountUrl = `/email/pro/${config.OVH_EMAIL_PRO_NAME}/account/${accountToBeAssigned}`;

try {
const result = await ovh.requestPromised('PUT', assignAccountUrl, {
Expand Down
Loading