mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-01 05:09:40 +00:00
Merge dev into fix/log-analytics-adjustments
This commit is contained in:
parent
9db2feff77
commit
d490cab48c
555 changed files with 9375 additions and 9287 deletions
|
|
@ -11,9 +11,12 @@ export async function verifyApiKeySetResourceClients(
|
|||
next: NextFunction
|
||||
) {
|
||||
const apiKey = req.apiKey;
|
||||
const singleClientId = req.params.clientId || req.body.clientId || req.query.clientId;
|
||||
const singleClientId =
|
||||
req.params.clientId || req.body.clientId || req.query.clientId;
|
||||
const { clientIds } = req.body;
|
||||
const allClientIds = clientIds || (singleClientId ? [parseInt(singleClientId as string)] : []);
|
||||
const allClientIds =
|
||||
clientIds ||
|
||||
(singleClientId ? [parseInt(singleClientId as string)] : []);
|
||||
|
||||
if (!apiKey) {
|
||||
return next(
|
||||
|
|
@ -70,4 +73,3 @@ export async function verifyApiKeySetResourceClients(
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue