feat: restore deleted document

This commit is contained in:
Ephraim Atta-Duncan
2024-06-13 15:57:16 +00:00
committed by Mythie
parent 1a55f4253b
commit feef4b1a12
11 changed files with 462 additions and 8 deletions

View File

@ -304,6 +304,10 @@ export const formatDocumentAuditLogAction = (auditLog: TDocumentAuditLog, userId
anonymous: 'Document deleted',
identified: 'deleted the document',
}))
.with({ type: DOCUMENT_AUDIT_LOG_TYPE.DOCUMENT_RESTORED }, () => ({
anonymous: 'Document restored',
identified: 'restored the document',
}))
.with({ type: DOCUMENT_AUDIT_LOG_TYPE.DOCUMENT_FIELD_INSERTED }, () => ({
anonymous: 'Field signed',
identified: 'signed a field',