mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
fix: packages (#378)
This commit is contained in:
@@ -33,7 +33,10 @@ export const dispatchAppRequest = async (props: Record<string, any>): Promise<Re
|
||||
return Promise.reject('Input is empty');
|
||||
}
|
||||
|
||||
const appData = await App.findById(app.id);
|
||||
const appData = await App.findOne({
|
||||
_id: app.id,
|
||||
userId: user._id
|
||||
});
|
||||
|
||||
if (!appData) {
|
||||
return Promise.reject('App not found');
|
||||
|
Reference in New Issue
Block a user