Skip to content

Commit

Permalink
fix: update url for internal software creation (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
santese authored Apr 4, 2024
1 parent 83ae2fb commit 8ae4d19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/software/software.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ describe('Software', () => {
const result = await software.createSoftwareInternal(authObject, softwareData)

expect(result).toEqual(mockData)
expect(mockAxios.post).toHaveBeenCalledWith('software', softwareData, {
expect(mockAxios.post).toHaveBeenCalledWith(`${Urls.app}/api/software`, softwareData, {
headers: {
Cookie: `auth_token=${authObject.authToken};`,
origin: Urls.appProd,
origin: Urls.app,
},
})
})
Expand Down
4 changes: 2 additions & 2 deletions src/lib/software/software.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ export class Software {
authObject: IAddigyInternalAuthObject,
software: CreateSoftware,
): Promise<Software> {
const res = await this.http.post('software', software, {
const res = await this.http.post(`${Urls.app}/api/software`, software, {
headers: {
Cookie: `auth_token=${authObject.authToken};`,
origin: Urls.appProd,
origin: Urls.app,
},
})
return res.data
Expand Down

0 comments on commit 8ae4d19

Please sign in to comment.