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 = {} }) => {
const body = {
mode: 'live',
key: window.LUMBERJACK_API_KEY,
key: 'test_key_1',
events: [
{
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',
body: JSON.stringify(body),
headers: {

View File

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