mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
Update project-bot-fns.ts
This commit is contained in:
@@ -20,10 +20,7 @@ export const getBotKeyFnFactory = (
|
|||||||
) => {
|
) => {
|
||||||
const getBotKeyFn = async (projectId: string) => {
|
const getBotKeyFn = async (projectId: string) => {
|
||||||
const project = await projectDAL.findById(projectId);
|
const project = await projectDAL.findById(projectId);
|
||||||
if (!project)
|
if (!project) throw new BadRequestError({ message: "Project not found during bot lookup." });
|
||||||
throw new BadRequestError({
|
|
||||||
message: "Project not found during bot lookup."
|
|
||||||
});
|
|
||||||
|
|
||||||
const bot = await projectBotDAL.findOne({ projectId: project.id });
|
const bot = await projectBotDAL.findOne({ projectId: project.id });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user