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

metaUpdated イベントが2回発火される? #14622

Open
1 task
kakkokari-gtyih opened this issue Sep 24, 2024 · 1 comment
Open
1 task

metaUpdated イベントが2回発火される? #14622

kakkokari-gtyih opened this issue Sep 24, 2024 · 1 comment
Labels
⚠️bug? This might be a bug

Comments

@kakkokari-gtyih
Copy link
Contributor

💡 Summary

image

update-metaなどを介してmetaをアップデートしたあとに、internal eventのmetaUpdatedが2回実行される可能性がある

🥰 Expected Behavior

1度だけ実行される

🤬 Actual Behavior

2回立て続けに実行される

📝 Steps to Reproduce

  1. metaUpdatedのリスナー部分に実行を確認できる仕組み(console.logなど)を導入する
  2. misskeyを起動し、/api/admin/update-metaなどを介してmetaを更新する
  3. ログを確認する

💻 Frontend Environment

N/A

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service: local install (manual)
* Misskey: develop (v2024.9.0-alpha.8)
* Node: v20.10.0
* PostgreSQL: 13.16
* Redis: 7.4.0
* OS and Architecture: WSL2 x64 (Windows 11 10.0.22631.4037, Ubuntu 22.04.5)

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request
@kakkokari-gtyih kakkokari-gtyih added the ⚠️bug? This might be a bug label Sep 24, 2024
@kakkokari-gtyih
Copy link
Contributor Author

kakkokari-gtyih commented Sep 25, 2024

これbake2回やったらdbへのリアクションの記録が2倍になったりしない…?(#14621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

No branches or pull requests

1 participant