Auto commit: 2026-03-25 13:04

This commit is contained in:
xiongxiao
2026-03-25 13:04:06 +08:00
committed by cnb
parent b39f7d6028
commit 02f17595d9
9 changed files with 77 additions and 54 deletions

View File

@@ -550,9 +550,10 @@ app
const checkUsername = username || tokenUser.username;
const files = await getMinioListAndSetToAppList({ username: checkUsername, appKey, version });
const newFiles = files.map((item) => {
const name = item.name.replace(`data/${uid}/`, checkUsername + '/');
return {
name: item.name.replace(`${checkUsername}/${appKey}/${version}/`, ''),
path: item.name,
name: name.replace(`${checkUsername}/${appKey}/${version}/`, ''),
path: name,
};
});
const appListData = appList.data as AppData;

View File

@@ -1,5 +1,5 @@
import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
import { kvAppDomain } from '@/db/drizzle/schema.ts';
import { kvAppDomain } from '@/db/schema.ts';
import { redis } from '@/modules/redis.ts';
// 审核,通过,驳回

View File

@@ -1,5 +1,5 @@
import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
import { kvApp, kvAppList } from '@/db/drizzle/schema.ts';
import { kvApp, kvAppList } from '@/db/schema.ts';
type AppPermissionType = 'public' | 'private' | 'protected';