Skip to content

Commit dac4814

Browse files
committed
OBPIH-6969 Change import url
1 parent 69fb942 commit dac4814

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/api/InventoryService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import BaseServiceModel from '@/api/BaseServiceModel';
22
import { jsonToCsv } from '@/utils/ServiceUtils';
33

44
class InventoryService extends BaseServiceModel {
5-
async importInventories(data: Record<string, string>[], locationId: string): Promise<void> {
5+
async importInventories(data: Record<string, string>[], facilityId: string): Promise<void> {
66
try {
77
const csvContent = jsonToCsv(data);
88

9-
const response = await this.request.post(`./api/locations/${locationId}/inventories/import`, {
9+
const response = await this.request.post(`./api/facilities/${facilityId}/inventories/import`, {
1010
data: csvContent,
1111
headers: { 'Content-Type': 'text/csv' },
1212
});

src/tests/inbound/createInbound/editDestinationFromSendPage.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import AppConfig from '@/config/AppConfig';
22
import { ShipmentType } from '@/constants/ShipmentType';
33
import { expect, test } from '@/fixtures/fixtures';
44
import { StockMovementResponse } from '@/types';
5-
import productService from '@/api/ProductService';
65

76
test.describe('Edit destination from send page', () => {
87
let STOCK_MOVEMENT: StockMovementResponse;

src/tests/inbound/createInbound/expectedDeliveryDate.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect, test } from '@/fixtures/fixtures';
22
import { StockMovementResponse, User } from '@/types';
33
import { formatDate, getDateByOffset } from '@/utils/DateUtils';
4-
import productService from '@/api/ProductService';
54

65
test.describe('Expected delivery date tests', () => {
76
let STOCK_MOVEMENT: StockMovementResponse;

src/tests/receiving/sortByAlphabeticalOrderAndRemainInputs.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect, test } from '@/fixtures/fixtures';
22
import { StockMovementResponse } from '@/types';
33
import { getDateByOffset, getToday } from '@/utils/DateUtils';
4-
import productService from '@/api/ProductService';
54

65
test.describe('Apply sorting by alphabetical order and remain inputs', () => {
76
let STOCK_MOVEMENT: StockMovementResponse;

0 commit comments

Comments
 (0)