update build ok,

This commit is contained in:
louiscklaw
2025-04-22 18:53:17 +08:00
parent f87dd2c3b1
commit 64b5f89fdf
30 changed files with 232 additions and 35 deletions

View File

@@ -2,7 +2,7 @@ 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';
import type { CreateFormProps } from '@/components/dashboard/lp/categories/type';
export default function createLessonCategory(data: CreateFormProps): Promise<RecordModel> {
return pb.collection(COL_LESSON_CATEGORIES).create(data);

View File

@@ -2,7 +2,7 @@ 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';
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);