egirlskey/packages
okayurisotto 750d262604
refactor(backend): `ReactionService.prototype.convertLegacyReactions` (#13375)
* add unit tests

* cleanup unnecessary type assertions

* `convertedReaction`変数の定義と変換表に対する存在確認処理の整理

* `count`変数の定義とループ処理での`Object.entries()`の活用

* 条件式の整理

* `Array.prototype.reduce`を使うように

* `Array.prototype.reduce`を使うように

* 配列操作を1つのメソッドチェーンに整理

これまでの実装では、`decodeReaction`の返り値が同一になる異なる入力値が同時に複数個存在した場合、後ろのもので上書きされてしまっていたはず。
これからの実装では、後ろのものは前のものに加算される。
(実際にこの挙動の変更が問題になるシチュエーションはまずないはず。)

* add unit test

* ドキュメントコメントの追加と型定義の調整
2024-02-21 14:31:50 +09:00
..
backend refactor(backend): `ReactionService.prototype.convertLegacyReactions` (#13375) 2024-02-21 14:31:50 +09:00
frontend refactor(frontend): 不必要なconsole.logを除去・抑制 (#13400) 2024-02-21 14:27:06 +09:00
misskey-bubble-game (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
misskey-js Update package.json 2024-02-17 13:43:04 +09:00
misskey-reversi (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
shared chore: use @misskey-dev/eslint-plugin (#12860) 2023-12-31 15:26:57 +09:00
sw (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
meta.json