Auto commit: 2026-03-25 13:04
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
// 审核,通过,驳回
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user