()
| 1973 | } |
| 1974 | |
| 1975 | func (e *UpdateConflictError) Error() string { |
| 1976 | return fmt.Sprintf( |
| 1977 | "item %s was modified by another writer (expected updated_at %s, actual %s)", |
| 1978 | e.ItemID, e.ExpectedUpdatedAt, e.ActualUpdatedAt.UTC().Format(time.RFC3339), |
| 1979 | ) |
| 1980 | } |
| 1981 | |
| 1982 | // mergeFieldsPatch applies a shallow JSON-merge-patch (RFC 7396 semantics, |
| 1983 | // one level deep) of `patch` onto the item's current fields JSON (IDEA-1480 |
no outgoing calls