From 765c7a3870a1d446622a28b157ab00a4dced2879 Mon Sep 17 00:00:00 2001 From: Skitty1238 <157652284+Skitty1238@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:02:18 -0400 Subject: documentation --- src/client/views/nodes/TaskBox.tsx | 4 +--- src/server/ApiManagers/GeneralGoogleManager.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/TaskBox.tsx b/src/client/views/nodes/TaskBox.tsx index f415f8b52..ed5982c55 100644 --- a/src/client/views/nodes/TaskBox.tsx +++ b/src/client/views/nodes/TaskBox.tsx @@ -286,7 +286,7 @@ export class TaskBox extends ViewBoxBaseComponent() { const listener = () => { window.removeEventListener('focusin', listener); if (confirm('✅ Authorization complete. Try syncing the task again?')) { - // you could refactor the click handler here + // try syncing again this.syncWithGoogleTaskBidirectional(); } window.removeEventListener('focusin', listener); @@ -498,7 +498,6 @@ export class TaskBox extends ViewBoxBaseComponent() { this._widthDisposer?.(); } - /** * Method to handle task deletion * @returns - a promise that resolves when the task is deleted @@ -560,7 +559,6 @@ export class TaskBox extends ViewBoxBaseComponent() { const endTime = DateCast(doc.$task_endTime) ? toLocalDateTimeString(DateCast(doc.$task_endTime)!.date) : ''; const handleGoogleTaskSync = async () => { - console.log('GT button clicked'); const success = await this.syncWithGoogleTaskBidirectional(); if (success) { diff --git a/src/server/ApiManagers/GeneralGoogleManager.ts b/src/server/ApiManagers/GeneralGoogleManager.ts index aceead3c6..110701418 100644 --- a/src/server/ApiManagers/GeneralGoogleManager.ts +++ b/src/server/ApiManagers/GeneralGoogleManager.ts @@ -63,8 +63,6 @@ export default class GeneralGoogleManager extends ApiManager { }, }); - // AARAV ADD - // Task Creation register({ method: Method.POST, @@ -153,6 +151,8 @@ export default class GeneralGoogleManager extends ApiManager { }, }); + // Google Account Linking + register({ method: Method.GET, subscription: '/refreshGoogle', -- cgit v1.2.3-70-g09d2