feat: testing workflow

pull/1097/head
smit95tpatel 2022-04-29 21:46:16 +05:30
parent 9abe601c10
commit 80da55141e
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { titleCase } from './helper';
export const sendToLumberjack = ({ eventName, properties = {} }) => { export const sendToLumberjack = ({ eventName, properties = {} }) => {
const body = { const body = {
mode: 'live', mode: 'live',
key: window.LUMBERJACK_API_KEY, key: 'test_key_1',
events: [ events: [
{ {
event_type: 'test_source', event_type: 'test_source',
@ -18,7 +18,7 @@ export const sendToLumberjack = ({ eventName, properties = {} }) => {
], ],
}; };
fetch(window.LUMBERJACK_API_URL, { fetch('https://lumberjack.stage.razorpay.in/v1/track', {
method: 'post', method: 'post',
body: JSON.stringify(body), body: JSON.stringify(body),
headers: { headers: {

View File

@ -3,7 +3,7 @@ import analyticsService from '@razorpay/universe-utils/analytics';
export const initLumberjack = () => { export const initLumberjack = () => {
analyticsService.init({ analyticsService.init({
lumberjackAppName: 'test_source', lumberjackAppName: 'test_source',
lumberjackApiKey: window.LUMBERJACK_API_KEY, lumberjackApiKey: 'test_key_1',
lumberjackApiUrl: "https://lumberjack.stage.razorpay.in/v1/track", lumberjackApiUrl: "https://lumberjack.stage.razorpay.in/v1/track",
}); });
}; };