mirror of
https://github.com/djhackersdev/minime.git
synced 2026-07-08 21:13:57 -05:00
16 lines
453 B
TypeScript
16 lines
453 B
TypeScript
import { DiscoverProfileRequest } from "../request/discoverProfile";
|
|
import { DiscoverProfileResponse } from "../response/discoverProfile";
|
|
import { Repositories } from "../repo";
|
|
|
|
export async function discoverProfile(
|
|
w: Repositories,
|
|
req: DiscoverProfileRequest
|
|
): Promise<DiscoverProfileResponse> {
|
|
const profileId = await w.profile().peek(req.aimeId);
|
|
|
|
return {
|
|
type: "discover_profile_res",
|
|
exists: profileId !== undefined,
|
|
};
|
|
}
|