mirror of
https://github.com/outline/outline.git
synced 2026-05-08 02:50:30 -05:00
fix: Show api-key creator name in settings page (#10041)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user