From 8a10d7ebf2e3e33b5a629ad17cbd6e1a3dfa96f1 Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 10 Jun 2021 16:31:09 +0100 Subject: [PATCH] rename to ApiTokenDocument and extend mongodbdoc --- common/js/types.d.ts | 2 +- common/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 61504e9c0..97f6c31b4 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -1117,7 +1117,7 @@ export declare type APIPermissions = "create:goal" | "manage:goal"; /** * Information about the API Token used to make this request. */ -export interface TachiAPIAuthData { +export interface APITokenDocument extends MongoDBDocument { userID: integer | null; token: string | null; identifier: string; diff --git a/common/src/types.ts b/common/src/types.ts index edf3c62e5..11ee00dce 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -1370,7 +1370,7 @@ export type APIPermissions = "create:goal" | "manage:goal"; /** * Information about the API Token used to make this request. */ -export interface TachiAPIAuthData { +export interface APITokenDocument extends MongoDBDocument { userID: integer | null; token: string | null; identifier: string;