`` fix GetUserById API to include requestKey option for Pocketbase compatibility
``
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import { pb } from '@/lib/pb';
|
|
||||||
import { COL_USER_METAS } from '@/constants';
|
import { COL_USER_METAS } from '@/constants';
|
||||||
import { RecordModel } from 'pocketbase';
|
import type { RecordModel } from 'pocketbase';
|
||||||
|
|
||||||
|
import { pb } from '@/lib/pb';
|
||||||
|
|
||||||
export async function getUserMetaById(id: string): Promise<RecordModel> {
|
export async function getUserMetaById(id: string): Promise<RecordModel> {
|
||||||
return pb.collection(COL_USER_METAS).getOne(id);
|
return pb.collection(COL_USER_METAS).getOne(id, { requestKey: null });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user