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

import { pb } from '@/lib/pb';
import type { CreateFormProps } from '@/components/dashboard/lp_categories/type';

export default function updateLessonCategory(id: string, data: CreateFormProps): Promise<RecordModel> {
  return pb.collection(COL_LESSON_CATEGORIES).update(id, data);
}
