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
91b7d81c
authored
Jan 19, 2024
by
William Zhang
Committed by
GitHub
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: correct time to real 7 days (#754)
parent
5e2adb22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
packages/service/core/dataset/training/schema.ts
+1
-1
No files found.
packages/service/core/dataset/training/schema.ts
View file @
91b7d81c
...
@@ -107,7 +107,7 @@ try {
...
@@ -107,7 +107,7 @@ try {
// get training data and sort
// get training data and sort
TrainingDataSchema
.
index
({
weight
:
-
1
});
TrainingDataSchema
.
index
({
weight
:
-
1
});
TrainingDataSchema
.
index
({
lockTime
:
1
});
TrainingDataSchema
.
index
({
lockTime
:
1
});
TrainingDataSchema
.
index
({
expireAt
:
1
},
{
expireAfterSeconds
:
7
*
24
*
60
});
TrainingDataSchema
.
index
({
expireAt
:
1
},
{
expireAfterSeconds
:
7
*
24
*
60
*
60
});
// 7 days
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
}
}
...
...
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