update,
This commit is contained in:
@@ -2,7 +2,7 @@ import { COL_LESSON_CATEGORIES } from '@/constants';
|
||||
import type { RecordModel } from 'pocketbase';
|
||||
|
||||
import { pb } from '@/lib/pb';
|
||||
import type { CreateForm } from '@/components/dashboard/lesson_category/types';
|
||||
import type { CreateForm } from '@/components/dashboard/lp_categories/type';
|
||||
|
||||
export default function createLessonCategory(data: CreateForm): Promise<RecordModel> {
|
||||
return pb.collection(COL_LESSON_CATEGORIES).create(data);
|
||||
|
@@ -2,7 +2,7 @@ import { COL_LESSON_CATEGORIES } from '@/constants';
|
||||
import type { RecordModel } from 'pocketbase';
|
||||
|
||||
import { pb } from '@/lib/pb';
|
||||
import type { CreateForm } from '@/components/dashboard/lesson_category/types';
|
||||
import type { CreateForm } from '@/components/dashboard/lp_categories/type';
|
||||
|
||||
export default function updateLessonCategory(id: string, data: CreateForm): Promise<RecordModel> {
|
||||
return pb.collection(COL_LESSON_CATEGORIES).update(id, data);
|
||||
|
Reference in New Issue
Block a user