fix: Event should not be written when API key is used

This commit is contained in:
Tom Moor committed 2024-11-13 09:10:30 -05:00
1 parent 1282e9653e
commit 8cfd8e25db
1 file changed
+2 -1
+2 -1
View File
@@ -65,6 +65,7 @@ class ApiKey extends ParanoidModel<
@IsDate
@Column
@SkipChangeset
lastActiveAt: Date | null;
// hooks
@@ -153,7 +154,7 @@ class ApiKey extends ParanoidModel<
this.lastActiveAt = new Date();
}
return this.save();
return this.save({ silent: true });
};
}