```
refactor GetById APIs for Students, Teachers, and UserMetas to use consistent type definitions and expand parameters ```
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { COL_BILLING_ADDRESS, COL_STUDENTS, COL_USER_METAS } from '@/constants';
|
||||
import { RecordModel } from 'pocketbase';
|
||||
// src/db/billingAddress/GetById.tsx
|
||||
//
|
||||
// PURPOSE:
|
||||
// to get billing address by its id
|
||||
//
|
||||
|
||||
import { COL_BILLING_ADDRESS } from '@/constants';
|
||||
|
||||
import { logger } from '@/lib/default-logger';
|
||||
import { pb } from '@/lib/pb';
|
||||
import type { DBUserMeta, UserMeta } from '@/components/dashboard/user_meta/type.d';
|
||||
|
||||
@@ -10,8 +14,6 @@ export async function getBillingAddressById(id: string): Promise<UserMeta> {
|
||||
.collection(COL_BILLING_ADDRESS)
|
||||
.getOne<DBUserMeta>(id, { expand: 'billingAddress, helloworld' });
|
||||
|
||||
console.log({ record });
|
||||
|
||||
const temp: UserMeta = {
|
||||
id: record.id,
|
||||
name: record.name,
|
||||
|
Reference in New Issue
Block a user