mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 03:42:23 -06:00
adjusts in create instance
This commit is contained in:
@@ -79,9 +79,11 @@ async function apikey(req: Request, _: Response, next: NextFunction) {
|
||||
return next();
|
||||
}
|
||||
} else {
|
||||
const instanceByKey = await repository.auth.findByKey(key);
|
||||
if (instanceByKey) {
|
||||
return next();
|
||||
if (req.originalUrl.includes('/instance/fetchInstances')) {
|
||||
const instanceByKey = await repository.auth.findByKey(key);
|
||||
if (instanceByKey) {
|
||||
return next();
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user