diff --git a/src/services/entry/actions/delete-entry.ts b/src/services/entry/actions/delete-entry.ts index 54300634..3a7f8b1b 100644 --- a/src/services/entry/actions/delete-entry.ts +++ b/src/services/entry/actions/delete-entry.ts @@ -176,6 +176,7 @@ export async function deleteEntry( ...entryObj.innerMeta, oldKey: oldKeyLowerCase, oldDisplayKey: oldKey, + lastDeletionUserId: user.userId, }; await markEntryAsDeleted(trx, { diff --git a/src/types/models/entry.ts b/src/types/models/entry.ts index 0d946627..ee21bfe8 100644 --- a/src/types/models/entry.ts +++ b/src/types/models/entry.ts @@ -11,6 +11,7 @@ export type EntryScope = export type EntryInnerMeta = { oldKey: string; oldDisplayKey: string; + lastDeletionUserId?: string; }; /** @deprecated use EntryColumns */