Skip to content

Commit 31a9d02

Browse files
committed
Add logs
1 parent 8ae0a32 commit 31a9d02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/server/api/src/app/flow-template/cloud-template.controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
5151
async (request) => {
5252
const user = getVerifiedUser(request, publicKey);
5353
if (!user) {
54+
logger.info('User is not authenticated, returning sample templates');
5455
return flowTemplateService.getFlowTemplates({
5556
search: request.query.search,
5657
tags: request.query.tags,
@@ -66,6 +67,7 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
6667
});
6768
}
6869

70+
logger.info('User is authenticated, returning all templates');
6971
return flowTemplateService.getFlowTemplates({
7072
search: request.query.search,
7173
tags: request.query.tags,

0 commit comments

Comments
 (0)