feat: improve mindspace asset handling and local runtime paths

This commit is contained in:
john
2026-06-28 12:18:26 +08:00
parent 4a9bc710f1
commit ea19ffb5fa
36 changed files with 867 additions and 100 deletions
+1
View File
@@ -10,6 +10,7 @@ export function createMindSpaceAuditWriter(pool) {
now = Date.now(),
}) => {
if (!pool) return;
if (!userId) return;
await pool.query(
`INSERT INTO h5_mindspace_audit_logs
(user_id, action, object_type, object_id, ip, result, risk_level, created_at)