Skip to content

Commit 533f39c

Browse files
committed
Added actions
1 parent d36ab54 commit 533f39c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/barcode_lookup/actions/batch-barcode-lookup/batch-barcode-lookup.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
},
2222
},
2323
async run({ $ }) {
24-
const response = await this.app.searchProducts({
24+
const response = await this.app.getProducts({
2525
$,
2626
params: {
2727
barcode: parseObject(this.barcodes)?.join(","),

components/barcode_lookup/actions/get-product-by-barcode/get-product-by-barcode.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
},
2121
},
2222
async run({ $ }) {
23-
const response = await this.app.searchProducts({
23+
const response = await this.app.getProducts({
2424
$,
2525
params: {
2626
barcode: this.barcode,

components/barcode_lookup/actions/search-products-by-parameters/search-products-by-parameters.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default {
7878
try {
7979
const response = await this.app.paginate({
8080
$,
81-
fn: this.app.searchProducts,
81+
fn: this.app.getProducts,
8282
maxResults: this.maxResults,
8383
params: {
8484
mpn: this.mpn,

0 commit comments

Comments
 (0)