update fix eslint,

This commit is contained in:
2025-05-16 12:51:32 +08:00
parent af5040ac6c
commit 57e25ef65f
144 changed files with 277 additions and 2597 deletions

View File

@@ -1,4 +1,5 @@
import { COL_CUSTOMERS, COL_USER_METAS } from '@/constants';
import { COL_USER_METAS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetActiveCount(): Promise<number> {

View File

@@ -1,6 +1,6 @@
import { pb } from '@/lib/pb';
import { COL_CUSTOMERS } from '@/constants';
import { RecordModel } from 'pocketbase';
import type { RecordModel } from 'pocketbase';
export async function getAllCustomers(options = {}): Promise<RecordModel[]> {
return pb.collection(COL_CUSTOMERS).getFullList(options);

View File

@@ -1,4 +1,5 @@
import { COL_CUSTOMERS, COL_USER_METAS } from '@/constants';
import { COL_USER_METAS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetBlockedCount(): Promise<number> {

View File

@@ -1,6 +1,6 @@
import { pb } from '@/lib/pb';
import { COL_CUSTOMERS } from '@/constants';
import { RecordModel } from 'pocketbase';
import type { RecordModel } from 'pocketbase';
export async function getCustomerById(id: string): Promise<RecordModel> {
return pb.collection(COL_CUSTOMERS).getOne(id);

View File

@@ -1,4 +1,5 @@
import { COL_CUSTOMERS, COL_USER_METAS } from '@/constants';
import { COL_USER_METAS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetPendingCount(): Promise<number> {

View File

@@ -1,3 +1,3 @@
export function helloCustomer() {
export function helloCustomer(): string {
return 'Hello from Customers module!';
}