2023-10-03 01:10:00 -04:00
|
|
|
import { apiRoot } from "./constants";
|
|
|
|
export default async function (id: number): Promise<number> {
|
2023-12-29 20:11:07 -05:00
|
|
|
let { data: lookup } = await useFetch<any>(`${apiRoot}/session-sharing/lookup`, {
|
|
|
|
method: "get",
|
|
|
|
query: {
|
|
|
|
params: {
|
|
|
|
id,
|
2023-10-03 01:10:00 -04:00
|
|
|
},
|
|
|
|
},
|
2023-12-29 20:11:07 -05:00
|
|
|
});
|
2023-10-03 01:10:00 -04:00
|
|
|
return lookup.value.uid as number;
|
|
|
|
}
|