mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 00:38:28 +03:00
refactor: rename PublicUserDocument to UserDocument
This commit is contained in:
@@ -14,7 +14,7 @@ import type {
|
||||
integer,
|
||||
PBScoreDocument,
|
||||
Playtype,
|
||||
PublicUserDocument,
|
||||
UserDocument,
|
||||
SessionDocument,
|
||||
SongDocument,
|
||||
} from "tachi-common";
|
||||
@@ -22,7 +22,7 @@ import type {
|
||||
const logger = CreateLayeredLogger(LoggerLayers.apiRequests);
|
||||
|
||||
export async function GetUserInfo(userID: integer | string) {
|
||||
const res = await TachiServerV1Get<PublicUserDocument>(`/users/${userID}`, null);
|
||||
const res = await TachiServerV1Get<UserDocument>(`/users/${userID}`, null);
|
||||
|
||||
if (!res.success) {
|
||||
throw new Error(`Failed to fetch user with userID ${userID}.`);
|
||||
|
||||
Reference in New Issue
Block a user