Utilize a unique ID for activity logs to improve rendering perf

This commit is contained in:
DaneEveritt 2022-07-10 14:53:29 -04:00
parent e878015109
commit d6c30092ec
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 8 additions and 2 deletions

View file

@ -20,6 +20,7 @@ interface SSHKey extends Model {
}
interface ActivityLog extends Model<'actor'> {
id: string;
batch: UUID | null;
event: string;
ip: string | null;

View file

@ -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,