(ctx context.Context, docid string, revid string, isNewDoc bool)
| 887 | } |
| 888 | |
| 889 | func auditEventForDocumentUpsert(ctx context.Context, docid string, revid string, isNewDoc bool) { |
| 890 | auditEvent := base.AuditIDDocumentUpdate |
| 891 | if isNewDoc { |
| 892 | auditEvent = base.AuditIDDocumentCreate |
| 893 | } |
| 894 | base.Audit(ctx, auditEvent, base.AuditFields{ |
| 895 | base.AuditFieldDocID: docid, |
| 896 | base.AuditFieldDocVersion: revid, |
| 897 | }) |
| 898 | } |
| 899 | |
| 900 | // HTTP handler for a DELETE of a _local document |
| 901 | func (h *handler) handleDelLocalDoc() error { |
no test coverage detected