fix(api): 移除内部辅助函数的 export 关键字,修复 Next.js Server Actions 异步约束报错

This commit is contained in:
kennethcheng 2026-04-28 11:46:09 +08:00
parent 842a5fef8c
commit 085659dfef

View File

@ -5,7 +5,7 @@ import { assets } from '@/db/schema';
import { eq } from 'drizzle-orm'; import { eq } from 'drizzle-orm';
import { revalidatePath } from 'next/cache'; import { revalidatePath } from 'next/cache';
export function getTencentSymbol(asset: { symbol: string; exchange: string | null }): string { function getTencentSymbol(asset: { symbol: string; exchange: string | null }): string {
const cleanSymbol = asset.symbol.trim().toUpperCase().replace(/[^0-9A-Z]/g, ''); const cleanSymbol = asset.symbol.trim().toUpperCase().replace(/[^0-9A-Z]/g, '');
switch (asset.exchange) { switch (asset.exchange) {