" @errors.add 'attr', 'message' " doesn't work in the "beforeUpdate" callback
Aperta
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 238
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
But it works ok in the "beforeSave" callback.
It should work in the "beforeUpdate" too
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, mongodb, mysql, nodejs, postgresql, redis, sqlite
- Ambito
- backend, databases
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100