Provide default path for logging dashboard secrets event

This commit is contained in:
Tuan Dang
2023-08-21 18:27:18 +07:00
parent 4a95f936ea
commit e28ced8eed

View File

@@ -956,7 +956,7 @@ export const getSecrets = async (req: Request, res: Response) => {
type: EventType.GET_SECRETS,
metadata: {
environment,
secretPath: secretPath as string,
secretPath: (secretPath as string) ?? "/",
numberOfSecrets: secrets.length
}
},