mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
10 lines
336 B
TypeScript
10 lines
336 B
TypeScript
import { fetchMeta } from './fetch-meta';
|
|
import { ILocalUser } from '../models/entities/user';
|
|
import { Users } from '../models';
|
|
|
|
export async function fetchProxyAccount(): Promise<ILocalUser | null> {
|
|
if (meta.proxyAccountId == null) return null;
|
|
const meta = await fetchMeta();
|
|
return await Users.findOne(meta.proxyAccountId);
|
|
}
|