clear old
This commit is contained in:
@@ -6,7 +6,7 @@ import { ContainerModel } from '../container/models/index.ts';
|
||||
import { Op } from 'sequelize';
|
||||
import { AppListModel, AppModel } from '../app-manager/index.ts';
|
||||
import { cachePage, getZip } from './module/cache-file.ts';
|
||||
import _ from 'lodash';
|
||||
import { uniqBy } from 'lodash-es';
|
||||
import semver from 'semver';
|
||||
|
||||
app
|
||||
@@ -53,7 +53,7 @@ app
|
||||
// 上传文件
|
||||
const res = await cachePage(page, { tokenUser, key, version: _version });
|
||||
const appFiles = appList?.data?.files || [];
|
||||
const newFiles = _.uniqBy([...appFiles, ...res], 'name');
|
||||
const newFiles = uniqBy([...appFiles, ...res], 'name');
|
||||
appList.data = {
|
||||
...appList?.data,
|
||||
files: newFiles,
|
||||
|
||||
Reference in New Issue
Block a user