mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-12 05:16:42 -05:00
Don't use this in database.js
This commit is contained in:
@@ -48,14 +48,14 @@ async function getUserByPID(pid) {
|
||||
async function doesUserExist(username) {
|
||||
verifyConnected();
|
||||
|
||||
return !!await this.getUserByUsername(username);
|
||||
return !!await getUserByUsername(username);
|
||||
}
|
||||
|
||||
async function getUserBasic(token) {
|
||||
verifyConnected();
|
||||
|
||||
const [username, password] = Buffer.from(token, 'base64').toString().split(' ');
|
||||
const user = await this.getUserByUsername(username);
|
||||
const user = await getUserByUsername(username);
|
||||
|
||||
if (!user) {
|
||||
return null;
|
||||
@@ -92,7 +92,7 @@ async function getUserBearer(token) {
|
||||
async function getUserProfileJSONByPID(pid) {
|
||||
verifyConnected();
|
||||
|
||||
const user = await this.getUserByPID(pid);
|
||||
const user = await getUserByPID(pid);
|
||||
const device = user.get('devices')[0]; // Just grab the first device
|
||||
let device_attributes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user