Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
b6318aa3
authored
Aug 22, 2025
by
Archer
Committed by
GitHub
Aug 22, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: version schema ref error (#5518)
parent
95325346
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
document/content/docs/upgrading/4-12/4122.mdx
+1
-0
document/data/doc-last-modified.json
+1
-1
packages/service/core/app/version/schema.ts
+5
-9
projects/app/src/pages/api/core/app/version/list.ts
+1
-1
No files found.
document/content/docs/upgrading/4-12/4122.mdx
View file @
b6318aa3
...
...
@@ -21,6 +21,7 @@ description: 'FastGPT V4.12.2 更新说明'
4. 用户同步可能出现写冲突问题。
5. 无法完全关闭系统套餐,会存在空对象默认值,导致鉴权异常。
6. 工作流,添加团队应用,搜索无效。
7. 应用版本,ref 字段错误,导致无法正常使用。
## 🔨 工具更新
...
...
document/data/doc-last-modified.json
View file @
b6318aa3
...
...
@@ -104,7 +104,7 @@
"document/content/docs/upgrading/4-11/4111.mdx"
:
"2025-08-07T22:49:09+08:00"
,
"document/content/docs/upgrading/4-12/4120.mdx"
:
"2025-08-12T22:45:19+08:00"
,
"document/content/docs/upgrading/4-12/4121.mdx"
:
"2025-08-15T22:53:06+08:00"
,
"document/content/docs/upgrading/4-12/4122.mdx"
:
"2025-08-22T
09:38:4
4+08:00"
,
"document/content/docs/upgrading/4-12/4122.mdx"
:
"2025-08-22T
10:18:2
4+08:00"
,
"document/content/docs/upgrading/4-8/40.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/41.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/42.mdx"
:
"2025-08-02T19:38:37+08:00"
,
...
...
packages/service/core/app/version/schema.ts
View file @
b6318aa3
import
{
connectionMongo
,
getMongoModel
,
type
Model
}
from
'../../../common/mongo'
;
const
{
Schema
,
model
,
models
}
=
connectionMongo
;
import
{
connectionMongo
,
getMongoModel
}
from
'../../../common/mongo'
;
const
{
Schema
}
=
connectionMongo
;
import
{
type
AppVersionSchemaType
}
from
'@fastgpt/global/core/app/version'
;
import
{
chatConfigType
}
from
'../schema'
;
import
{
AppCollectionName
,
chatConfigType
}
from
'../schema'
;
import
{
TeamMemberCollectionName
}
from
'@fastgpt/global/support/user/team/constant'
;
export
const
AppVersionCollectionName
=
'app_versions'
;
...
...
@@ -15,7 +15,7 @@ const AppVersionSchema = new Schema(
},
appId
:
{
type
:
Schema
.
Types
.
ObjectId
,
ref
:
App
Version
CollectionName
,
ref
:
AppCollectionName
,
required
:
true
},
time
:
{
...
...
@@ -41,11 +41,7 @@ const AppVersionSchema = new Schema(
}
);
try
{
AppVersionSchema
.
index
({
appId
:
1
,
time
:
-
1
});
}
catch
(
error
)
{
console
.
log
(
error
);
}
AppVersionSchema
.
index
({
appId
:
1
,
_id
:
-
1
});
export
const
MongoAppVersion
=
getMongoModel
<
AppVersionSchemaType
>
(
AppVersionCollectionName
,
...
...
projects/app/src/pages/api/core/app/version/list.ts
View file @
b6318aa3
...
...
@@ -34,7 +34,7 @@ async function handler(
(
async
()
=>
{
const
versions
=
await
MongoAppVersion
.
find
(
match
)
.
sort
({
time
:
-
1
_id
:
-
1
})
.
skip
(
offset
)
.
limit
(
pageSize
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment