feat(core-flows, medusa): add update stock location endpoint to api-v2 (#6800)
* initial create * add changeset * redo changes for stock locatino module' * initial update * add changeset * move integration tests * update update method * fix integration tests * Update packages/stock-location-next/src/services/stock-location.ts Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> * update service * initial fixes * pr feedback * update types * expand revert clause for update * update versioning --------- Co-authored-by: Riqwan Thamir <rmthamir@gmail.com> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
co-authored by
Oli Juhl
Riqwan Thamir
parent
0b23e7efb8
commit
4cf71af07d
+2
-2
@@ -107,7 +107,7 @@ moduleIntegrationTestRunner({
|
||||
id: stockLocation.id,
|
||||
name: "updated location",
|
||||
}
|
||||
const location = await service.update(data)
|
||||
const location = await service.upsert(data)
|
||||
|
||||
expect(location).toEqual(expect.objectContaining(data))
|
||||
})
|
||||
@@ -122,7 +122,7 @@ moduleIntegrationTestRunner({
|
||||
},
|
||||
}
|
||||
|
||||
const location = await service.update(data)
|
||||
const location = await service.upsert(data)
|
||||
|
||||
expect(location).toEqual(
|
||||
expect.objectContaining({
|
||||
|
||||
Reference in New Issue
Block a user