Commit aa9b29c
Query the DB for the hash before inserting in to email_hash (go-gitea#15457)
Backport go-gitea#15457
Some postgres users have logging which logs even failed transactions. So
just query the db before trying to insert.
Fix go-gitea#15451
Signed-off-by: Andrew Thornton [email protected]
Co-authored-by: Lunny Xiao <[email protected]>1 parent 211bb91 commit aa9b29c
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
0 commit comments