Skip to content

Commit 8ae4d19

Browse files
authoredApr 4, 2024··
fix: update url for internal software creation (#118)
1 parent 83ae2fb commit 8ae4d19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/lib/software/software.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ describe('Software', () => {
6969
const result = await software.createSoftwareInternal(authObject, softwareData)
7070

7171
expect(result).toEqual(mockData)
72-
expect(mockAxios.post).toHaveBeenCalledWith('software', softwareData, {
72+
expect(mockAxios.post).toHaveBeenCalledWith(`${Urls.app}/api/software`, softwareData, {
7373
headers: {
7474
Cookie: `auth_token=${authObject.authToken};`,
75-
origin: Urls.appProd,
75+
origin: Urls.app,
7676
},
7777
})
7878
})

‎src/lib/software/software.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ export class Software {
9696
authObject: IAddigyInternalAuthObject,
9797
software: CreateSoftware,
9898
): Promise<Software> {
99-
const res = await this.http.post('software', software, {
99+
const res = await this.http.post(`${Urls.app}/api/software`, software, {
100100
headers: {
101101
Cookie: `auth_token=${authObject.authToken};`,
102-
origin: Urls.appProd,
102+
origin: Urls.app,
103103
},
104104
})
105105
return res.data

0 commit comments

Comments
 (0)
Please sign in to comment.