Skip to content

Commit

Permalink
fixed date handling bug in events api
Browse files Browse the repository at this point in the history
  • Loading branch information
elimelt committed Oct 1, 2023
1 parent aba09f3 commit 4016537
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions frontend-v2/back_end/api/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,9 @@ export async function getEventsBasedOnTime(
return errObj;
}

// Getting Date
// Getting todays's date in Epoch format

const todayStr = new Date().toISOString(); // YYYY-MM-DDTHH:MM:SS.sssz
const today = todayStr.substring(0, todayStr.length - 5); // YYYY-MM-DDTHH:MM:SS
const today = new Date().getTime()/1000;

// Creating query
let qRes;
Expand Down
1 change: 0 additions & 1 deletion frontend-v2/back_end/api/leads.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export async function deleteLead(leadName, test = "Club_Leads") {
* @returns {Promise<boolean>} Returns true if the update is successful, otherwise false.
*/
export async function updateLead(leadName, key, value, test = "Club_Leads") {
console.log(leadName, key, value);
try {
// check required parameters are provided
if (!leadName || !key || value === undefined) {
Expand Down
1 change: 0 additions & 1 deletion frontend-v2/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const sendEmail = async (name, email, notes) => {
message: notes,
reply_to: email,
};
console.log(name);

emailjs
.send(
Expand Down

0 comments on commit 4016537

Please sign in to comment.