Skip to content

Commit

Permalink
Add userId to innerMeta for deleted entry (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenkoxx authored Nov 7, 2024
1 parent bc1f861 commit c8abf69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/entry/actions/delete-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export async function deleteEntry(
...entryObj.innerMeta,
oldKey: oldKeyLowerCase,
oldDisplayKey: oldKey,
lastDeletionUserId: user.userId,
};

await markEntryAsDeleted(trx, {
Expand Down
1 change: 1 addition & 0 deletions src/types/models/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type EntryScope =
export type EntryInnerMeta = {
oldKey: string;
oldDisplayKey: string;
lastDeletionUserId?: string;
};

/** @deprecated use EntryColumns */
Expand Down

0 comments on commit c8abf69

Please sign in to comment.