Fix: Better error message on project not found during bot lookup

This commit is contained in:
Daniel Hougaard
2024-05-23 15:47:08 +02:00
parent 290d99e02c
commit 68d1849ba0
3 changed files with 16 additions and 6 deletions
@@ -25,7 +25,7 @@ export const projectBotServiceFactory = ({
projectDAL,
permissionService
}: TProjectBotServiceFactoryDep) => {
const getBotKeyFn = getBotKeyFnFactory(projectBotDAL);
const getBotKeyFn = getBotKeyFnFactory(projectBotDAL, projectDAL);
const getBotKey = async (projectId: string) => {
return getBotKeyFn(projectId);