Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnisLielturks committed Apr 25, 2024
1 parent 71ff07c commit 37e96a2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish Package to npmjs
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rootxpdev/medusa-email-plugin",
"version": "0.3.3",
"version": "0.3.4",
"description": "Send emails when certain actions happens in medusa store",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/services/emails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EmailsService extends AbstractNotificationService {
if (event === "order.placed") {
// retrieve order
// @ts-ignore
const order = await this.orderService_.retrieve(data.id? || '');
const order = await this.orderService_.retrieve(data.id || '');

await this.sendEmail(order.email, 'Order received', event, {
orderItems: order.items,
Expand Down

0 comments on commit 37e96a2

Please sign in to comment.