Skip to content

Commit

Permalink
fix: add more property names for user navigation property detection t…
Browse files Browse the repository at this point in the history
…o audit logs
  • Loading branch information
ascott18 committed Dec 14, 2023
1 parent b3d9344 commit a63f7da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ export default defineComponent({
)
// FUTURE: Could there be other props that we detect as representing a user?
.filter((p) =>
["user"].some((needle) => p.name.toLowerCase().includes(needle))
["user", "createdby", "changedby"].some((needle) =>
p.name.toLowerCase().includes(needle)
)
)[0]
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ const userPropMeta = computed(() => {
)
// FUTURE: Could there be other props that we detect as representing a user?
.filter((p) =>
["user"].some((needle) => p.name.toLowerCase().includes(needle))
["user", "createdby", "changedby"].some((needle) =>
p.name.toLowerCase().includes(needle)
)
)[0]
);
});
Expand Down

0 comments on commit a63f7da

Please sign in to comment.