Comment out logging statements in application

This commit is contained in:
jfrye122
2023-06-07 14:00:10 -04:00
parent ae8a0fb943
commit 851d8bebe4
4 changed files with 28 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ import {
timeTicketClockInSuccess,
timeTicketClockInFailure,
timeTicketClockOutSuccess,
timeTicketClockOutFailure
timeTicketClockOutFailure,
} from "./timetickets.actions";
import TimeTicketsActionTypes from "./timetickets.types";
import { client } from "../../graphql/client";
@@ -14,7 +14,6 @@ import { logImEXEvent } from "../../firebase/firebase.analytics";
import { selectCurrentTimeTicket } from "./timetickets.selectors";
import { INSERT_NEW_TIME_TICKET } from "../../graphql/timetickets.queries";
export function* onCreateTimeTicketStart() {
yield takeLatest(
TimeTicketsActionTypes.TIME_TICKET_CREATE_START,
@@ -24,7 +23,7 @@ export function* onCreateTimeTicketStart() {
export function* insertNewTimeTicket({ payload: { timeTicketInput } }) {
try {
logImEXEvent("redux_insertnewtimeticket_attempt");
console.log("Saga, TIME_TICKET_CREATE_START :", timeTicketInput);
// console.log("Saga, TIME_TICKET_CREATE_START :", timeTicketInput);
//console.loging
// console.log("Saga", employeeId, pin, pin);
const timeTicket = yield select(selectCurrentTimeTicket);
@@ -73,13 +72,18 @@ export function* insertNewTimeTicket({ payload: { timeTicketInput } }) {
}
export function* onClockOutStart() {
yield takeLatest(TimeTicketsActionTypes.TIME_TICKET_CLOCKOUT_START,clockOutStart);
yield takeLatest(
TimeTicketsActionTypes.TIME_TICKET_CLOCKOUT_START,
clockOutStart
);
}
export function* clockOutStart({ payload: { timeTicketInput } }) {
try {
logImEXEvent("redux_clockOutStart_attempt");
//console.loging
console.log("Saga, clockOutStart :", timeTicketInput);
// console.log("Saga, clockOutStart :", timeTicketInput);
// const timeTicket = yield select(selectCurrentTimeTicket);
// const response = yield call(axios.post, "/tech/login", {
// shopid: bodyshop.id,
@@ -125,16 +129,24 @@ export function* clockOutStart({ payload: { timeTicketInput } }) {
}
}
export function* onClockInStart() {
yield takeLatest(TimeTicketsActionTypes.TIME_TICKET_CLOCKIN_START,clockInStart);
yield takeLatest(
TimeTicketsActionTypes.TIME_TICKET_CLOCKIN_START,
clockInStart
);
}
export function* clockInStart({ payload: { timeTicketInput } }) {
try {
logImEXEvent("redux_clockInStart_attempt");
console.log("Saga, clockInStart :", timeTicketInput);
// console.log("Saga, clockInStart :", timeTicketInput);
} catch (error) {
yield put(timeTicketClockInFailure(error));
}
}
export function* timeTicketsSagas() {
yield all([call(onCreateTimeTicketStart),call(onClockOutStart),call(onClockInStart)]);
yield all([
call(onCreateTimeTicketStart),
call(onClockOutStart),
call(onClockInStart),
]);
}