update build ok,
This commit is contained in:
13
002_source/cms/src/db/QuizCRQuestions/Create.tsx
Normal file
13
002_source/cms/src/db/QuizCRQuestions/Create.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { COL_QUIZ_CR_QUESTIONS } from '@/constants';
|
||||
import type { RecordModel } from 'pocketbase';
|
||||
|
||||
import { pb } from '@/lib/pb';
|
||||
import type { CreateFormProps } from '@/components/dashboard/cr/questions/type';
|
||||
|
||||
// interface CreateForm {
|
||||
// // TODO: Add QuizCRQuestions fields
|
||||
// }
|
||||
|
||||
export default function createQuizCRQuestion(data: CreateFormProps): Promise<RecordModel> {
|
||||
return pb.collection(COL_QUIZ_CR_QUESTIONS).create(data);
|
||||
}
|
Reference in New Issue
Block a user