fix: Show api-key creator name in settings page (#10041)

This commit is contained in:
Hemachandar
2025-08-29 19:03:47 +05:30
committed by GitHub
parent ac55ad55dd
commit 05b9c69da8
4 changed files with 11 additions and 1 deletions
+6
View File
@@ -2,6 +2,8 @@ import { isPast } from "date-fns";
import { computed, observable } from "mobx";
import ParanoidModel from "./base/ParanoidModel";
import Field from "./decorators/Field";
import User from "./User";
import Relation from "./decorators/Relation";
class ApiKey extends ParanoidModel {
static modelName = "ApiKey";
@@ -25,6 +27,10 @@ class ApiKey extends ParanoidModel {
@observable
lastActiveAt?: string;
/** The user who this API key belongs to. */
@Relation(() => User)
user: User;
/** The user ID that the API key belongs to. */
userId: string;