mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-31 03:22:18 +00:00
fix: admin
This commit is contained in:
@@ -114,7 +114,7 @@ const SystemSchema = new mongoose.Schema({
|
||||
}
|
||||
});
|
||||
|
||||
export const App = mongoose.models['model'] || mongoose.model('model', appSchema);
|
||||
export const App = mongoose.models['app'] || mongoose.model('app', appSchema);
|
||||
export const Kb = mongoose.models['kb'] || mongoose.model('kb', kbSchema);
|
||||
export const User = mongoose.models['user'] || mongoose.model('user', UserSchema);
|
||||
export const Pay = mongoose.models['pay'] || mongoose.model('pay', paySchema);
|
||||
|
@@ -55,7 +55,7 @@ export const Dashboard: React.FC = React.memo(() => {
|
||||
const kbResponse = await fetch(`${baseUrl}/kbs?_end=1`, {
|
||||
headers
|
||||
});
|
||||
const modelResponse = await fetch(`${baseUrl}/models?_end=1`, {
|
||||
const modelResponse = await fetch(`${baseUrl}/apps?_end=1`, {
|
||||
headers
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user