Skip to content

Commit ad3b41c

Browse files
committed
Test
1 parent 0a6177d commit ad3b41c

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

packages/react-ui/src/app/constants/cloud.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const OPENOPS_CLOUD_URL = 'https://test.internal.openops.com/';
1+
export const OPENOPS_CLOUD_URL = 'https://test.internal.openops.com';
22
export const OPENOPS_CONNECT_TEMPLATES_URL = `${OPENOPS_CLOUD_URL}/connect`;
33
export const OPENOPS_CONNECT_TEMPLATES_LOGOUT_URL = `${OPENOPS_CLOUD_URL}/oauth/logout`;
44
export const OPENOPS_CONNECT_TEMPLATES_POLL_INTERVAL_MS = 800;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
6767
async (request) => {
6868
const user = getVerifiedUser(request, publicKey);
6969
if (!user) {
70+
logger.info('User is not authenticated');
71+
7072
return flowTemplateService.getFlowTemplates({
7173
search: request.query.search,
7274
tags: request.query.tags,
@@ -82,6 +84,8 @@ export const cloudTemplateController: FastifyPluginAsyncTypebox = async (
8284
});
8385
}
8486

87+
logger.info('User is authenticated');
88+
return [];
8589
return flowTemplateService.getFlowTemplates({
8690
search: request.query.search,
8791
tags: request.query.tags,

packages/server/api/src/app/user-info/user-info.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ export const userInfoController: FastifyPluginAsyncTypebox = async (app) => {
5252
const user = getVerifiedUser(request, publicKey);
5353

5454
if (!user) {
55+
logger.info('User is not authenticated');
5556
return reply.status(401).send();
5657
}
5758

59+
logger.info('User is authenticated');
5860
return user;
5961
},
6062
);

0 commit comments

Comments
 (0)