合并评查点新增代码

This commit is contained in:
2025-04-13 15:09:01 +08:00
parent 414fb8ebac
commit 60680cd4bf
11 changed files with 772 additions and 941 deletions
+1 -1
View File
@@ -503,7 +503,7 @@ function preprocessData(data: Record<string, unknown>): Record<string, unknown>
export async function postgrestPut<T, D extends object>(
endpoint: string,
data: D,
filters?: Record<string, string>
filters?: Record<string | number, string | number>
): Promise<{data: T; error?: never} | {data?: never; error: string; status?: number}> {
try {
// 确保端点没有前导斜杠