Skip to content

Commit cfbd376

Browse files
committed
Added return id
1 parent 6a50acb commit cfbd376

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

components/modelry/actions/create-product/create-product.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
},
6767
},
6868
});
69-
$.export("$summary", "Successfully created the product");
69+
$.export("$summary", `Successfully created product "${response.data.attributes.title}" with ID: ${response.data.id}`);
7070
return response;
7171
},
7272
};

components/modelry/actions/get-product/get-product.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
$,
2121
productId: this.productId,
2222
});
23-
$.export("$summary", "Successfully retrieved the product details");
23+
$.export("$summary", `Successfully retrieved the details for the product "${response.data.attributes.title}" with ID: ${response.data.id}`);
2424
return response;
2525
},
2626
};

pnpm-lock.yaml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)