refactor: rename PublicUserDocument to UserDocument

This commit is contained in:
zkldi
2022-11-10 00:36:39 +00:00
parent 18e92bb138
commit 0db471d5f3
96 changed files with 294 additions and 294 deletions
+2 -2
View File
@@ -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}.`);