update
This commit is contained in:
parent
5d02c9719d
commit
251529813a
2
main.go
2
main.go
@ -620,7 +620,7 @@ func (s *DB) NewRecord(value interface{}) bool {
|
||||
// RecordNotFound check if returning ErrRecordNotFound error
|
||||
func (s *DB) RecordNotFound() bool {
|
||||
for _, err := range s.GetErrors() {
|
||||
if err == ErrRecordNotFound {
|
||||
if err.Error() == ErrRecordNotFound.Error() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user