Skip to content

Commit b6176bb

Browse files
Changed the default API version to 3
1 parent afdb705 commit b6176bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/product.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ProductsApi {
1111
}
1212

1313
async getProductAttributes(barcode: string): Promise<ProductAttribute[]> {
14-
const apiVersion = import.meta.env.VITE_API_VERSION || '2';
14+
const apiVersion = import.meta.env.VITE_API_VERSION || '3';
1515
const url = `${API_HOST}/api/v${apiVersion}/product/${barcode}?fields=product_name,code,attribute_groups_en`;
1616

1717
const res = await this.fetch(url);

0 commit comments

Comments
 (0)