update student pages,
This commit is contained in:
7
002_source/cms/src/db/Students/GetById.tsx
Normal file
7
002_source/cms/src/db/Students/GetById.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { pb } from '@/lib/pb';
|
||||
import { COL_STUDENTS } from '@/constants';
|
||||
import { RecordModel } from 'pocketbase';
|
||||
|
||||
export async function getStudentById(id: string): Promise<RecordModel> {
|
||||
return pb.collection(COL_STUDENTS).getOne(id);
|
||||
}
|
Reference in New Issue
Block a user