1602 / 1602/jugglingdb

" @errors.add 'attr', 'message' " doesn't work in the "beforeUpdate" callback

オープン
#223 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2k
フォーク
238
PR マージ指標
30日以内にマージされた PR はありません

説明

But it works ok in the "beforeSave" callback.
It should work in the "beforeUpdate" too

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Look at the ORM's callback handling code, likely in lib/model.js or similar. Compare the beforeSave and beforeUpdate callback implementations to see why validation errors aren't added in beforeUpdate. Run existing tests for callbacks and validation to understand the expected behavior.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
領域
backend, databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。