import { COL_USER_METAS } from '@/constants';
import type { RecordModel } from 'pocketbase';

import { pb } from '@/lib/pb';

import type { UpdateStudent } from './type';

export async function UpdateStudentById(id: string, data: Partial<UpdateStudent>): Promise<RecordModel> {
  return pb.collection(COL_USER_METAS).update(id, data);
}
