mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
refactor: improve sheet flow management
This commit is contained in:
committed by
Carlos Valente
parent
f53cb687bf
commit
f739ba122b
@@ -215,7 +215,7 @@ function verifyConnection(
|
||||
|
||||
export function hasAuth(): { authenticated: AuthenticationStatus; sheetId: string } {
|
||||
if (!currentSheetId) {
|
||||
throw new Error('No sheet ID');
|
||||
return { authenticated: 'not_authenticated', sheetId: '' };
|
||||
}
|
||||
if (cleanupTimeout) {
|
||||
return { authenticated: 'pending', sheetId: currentSheetId };
|
||||
|
||||
Reference in New Issue
Block a user