Utilize a unique ID for activity logs to improve rendering perf
This commit is contained in:
parent
e878015109
commit
d6c30092ec
5 changed files with 8 additions and 2 deletions
|
@ -20,6 +20,7 @@ interface SSHKey extends Model {
|
|||
}
|
||||
|
||||
interface ActivityLog extends Model<'actor'> {
|
||||
id: string;
|
||||
batch: UUID | null;
|
||||
event: string;
|
||||
ip: string | null;
|
||||
|
|
|
@ -31,6 +31,7 @@ export default class Transformers {
|
|||
const { actor } = attributes.relationships || {};
|
||||
|
||||
return {
|
||||
id: attributes.id,
|
||||
batch: attributes.batch,
|
||||
event: attributes.event,
|
||||
ip: attributes.ip,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue