chore: format code
This commit is contained in:
@@ -156,12 +156,15 @@ export const api = {
|
||||
method: "POST",
|
||||
body: JSON.stringify(data),
|
||||
}),
|
||||
update: (id: string, data: {
|
||||
feePerKwh?: number;
|
||||
registrationStatus?: "Accepted" | "Pending" | "Rejected";
|
||||
chargePointVendor?: string;
|
||||
chargePointModel?: string;
|
||||
}) =>
|
||||
update: (
|
||||
id: string,
|
||||
data: {
|
||||
feePerKwh?: number;
|
||||
registrationStatus?: "Accepted" | "Pending" | "Rejected";
|
||||
chargePointVendor?: string;
|
||||
chargePointModel?: string;
|
||||
},
|
||||
) =>
|
||||
apiFetch<ChargePoint>(`/api/charge-points/${id}`, {
|
||||
method: "PATCH",
|
||||
body: JSON.stringify(data),
|
||||
@@ -170,7 +173,12 @@ export const api = {
|
||||
apiFetch<{ success: true }>(`/api/charge-points/${id}`, { method: "DELETE" }),
|
||||
},
|
||||
transactions: {
|
||||
list: (params?: { page?: number; limit?: number; status?: "active" | "completed"; chargePointId?: string }) => {
|
||||
list: (params?: {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
status?: "active" | "completed";
|
||||
chargePointId?: string;
|
||||
}) => {
|
||||
const q = new URLSearchParams();
|
||||
if (params?.page) q.set("page", String(params.page));
|
||||
if (params?.limit) q.set("limit", String(params.limit));
|
||||
|
||||
Reference in New Issue
Block a user