mirror of
https://github.com/outline/outline.git
synced 2026-11-24 23:00:18 +03:00
fix: Event should not be written when API key is used
This commit is contained in:
1 parent
1282e9653e
commit
8cfd8e25db
1 file changed
+2
-1
@@ -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 });
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user