mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 00:15:23 +02:00
fix eslint errors
This commit is contained in:
parent
b98fd221b9
commit
5232ee5822
3 changed files with 5 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ const router = express.Router();
|
|||
|
||||
const apiKeyMiddleware = createRequireApiKeyAuth({
|
||||
validateAgentApiKey: db.validateAgentApiKey,
|
||||
findUser: db.findUser
|
||||
findUser: db.findUser,
|
||||
});
|
||||
|
||||
const requireRemoteAgentAuth = createRemoteAgentAuth({
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ const router = express.Router();
|
|||
|
||||
const apiKeyMiddleware = createRequireApiKeyAuth({
|
||||
validateAgentApiKey: db.validateAgentApiKey,
|
||||
findUser: db.findUser
|
||||
findUser: db.findUser,
|
||||
});
|
||||
|
||||
const requireRemoteAgentAuth = createRemoteAgentAuth({
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ describe('createRemoteAgentAuth', () => {
|
|||
});
|
||||
|
||||
const deps = { ...makeDeps(), updateUser: mockUpdateUser };
|
||||
await createRemoteAgentAuth(deps as any)(
|
||||
await createRemoteAgentAuth(deps)(
|
||||
makeReq({ authorization: `Bearer ${FAKE_TOKEN}` }) as Request,
|
||||
makeRes().res,
|
||||
mockNext,
|
||||
|
|
@ -490,7 +490,7 @@ describe('createRemoteAgentAuth', () => {
|
|||
});
|
||||
|
||||
const deps = { ...makeDeps(), updateUser: mockUpdateUser };
|
||||
await createRemoteAgentAuth(deps as any)(
|
||||
await createRemoteAgentAuth(deps)(
|
||||
makeReq({ authorization: `Bearer ${FAKE_TOKEN}` }) as Request,
|
||||
makeRes().res,
|
||||
mockNext,
|
||||
|
|
@ -498,5 +498,5 @@ describe('createRemoteAgentAuth', () => {
|
|||
|
||||
expect(mockUpdateUser).not.toHaveBeenCalled();
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue