`` fix GetUserById API to include requestKey option for Pocketbase compatibility ``

This commit is contained in:
louiscklaw
2025-05-15 09:27:20 +08:00
parent 5a1832ca89
commit ecab41abbf

View File

@@ -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 });
} }