Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Customer creation event is not emitted, however customer updation event is generated #10598

Closed
markusj1394 opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@markusj1394
Copy link

Package.json file

{
  "name": "-",
  "version": "1.0.0",
  "private": true,
  "author": "-",
  "description": "-",
  "keywords": [
    "medusa-storefront"
  ],
  "scripts": {
    "dev": "next dev -p 8000 --turbo",
    "build": "next build",
    "start": "next start -p 8000",
    "lint": "next lint",
    "format": "yarn lint && prettier --write .",
    "analyze": "ANALYZE=true next build",
    "test-e2e": "playwright test e2e"
  },
  "resolutions": {
    "webpack": "^5"
  },
  "overrides": {
    "@types/react": "npm:types-react@rc",
    "@types/react-dom": "npm:types-react-dom@rc"
  },
  "dependencies": {
    "@headlessui/react": "^2.2.0",
    "@hookform/resolvers": "^3.9.0",
    "@medusajs/js-sdk": "2.0.0",
    "@medusajs/types": "2.0.0",
    "@medusajs/ui": "4.0.0",
    "@meilisearch/instant-meilisearch": "^0.21.1",
    "@paypal/paypal-js": "^8.1.2",
    "@paypal/react-paypal-js": "^8.7.0",
    "@stripe/react-stripe-js": "^2.8.1",
    "@stripe/stripe-js": "^4.9.0",
    "@vercel/speed-insights": "^1.0.14",
    "algoliasearch": "^5.10.1",
    "axios": "^1.7.7",
    "embla-carousel-react": "^8.3.0",
    "lodash": "^4.17.21",
    "next": "^15.0.1",
    "pg": "^8.13.0",
    "qs": "^6.13.0",
    "react": "rc",
    "react-aria-components": "^1.4.1",
    "react-country-flag": "^3.1.0",
    "react-dom": "rc",
    "react-hook-form": "^7.53.1",
    "react-razorpay": "^3.0.1",
    "server-only": "^0.0.1",
    "tailwind-merge": "^2.5.4",
    "tailwindcss-radix": "^3.0.5",
    "webpack": "^5",
    "zod": "^3.23.8"
  },
  "devDependencies": {
    "@babel/core": "^7.25.9",
    "@medusajs/client-types": "0.2.12",
    "@medusajs/ui-preset": "2.0.0",
    "@playwright/test": "^1.48.1",
    "@types/lodash": "^4.17.12",
    "@types/node": "^20.16.15",
    "@types/pg": "^8.11.10",
    "@types/react": "npm:types-react@rc",
    "@types/react-dom": "npm:types-react-dom@rc",
    "ansi-colors": "^4.1.3",
    "autoprefixer": "^10.4.20",
    "babel-loader": "^9.2.1",
    "eslint": "9.13.0",
    "eslint-config-next": "^15.0.1",
    "postcss": "^8.4.47",
    "prettier": "^3.3.3",
    "tailwindcss": "^3.4.14",
    "typescript": "^5.6.3"
  },
  "packageManager": "yarn@1.22.19"
}

Node.js version

21.0.0

Database and its version

PostgresQL 16.02

Operating system name and version

Ubuntu 22

Browser name

No response

What happended?

I am creating a subscriber for customer creation events, but looks like the events are not emitted. I verified that the customer updation events are emitted though.

I looked at the source code, I couldn't find code for emitting event in the customer creation workflow. However, its present in customer updation workflow.

Expected behavior

Events should be emitted when customer is created.

Actual behavior

Events are not emitted when customer is created.

Link to reproduction repo

Copy link
Contributor

riqwan commented Dec 13, 2024

Thanks @markusj1394, I've opened a PR for this - #10601

@riqwan riqwan closed this as completed Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants