diff options
-rw-r--r-- | src/client/views/nodes/TaskBox.tsx | 4 | ||||
-rw-r--r-- | src/server/ApiManagers/GeneralGoogleManager.ts | 4 |
2 files changed, 3 insertions, 5 deletions
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<FieldViewProps>() { 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<FieldViewProps>() { 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<FieldViewProps>() { 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', |