mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
ifx: use template string not concatination
This commit is contained in:
@@ -20,8 +20,8 @@ type ResponseOK = {
|
|||||||
class sheet {
|
class sheet {
|
||||||
private static client: null | OAuth2Client = null;
|
private static client: null | OAuth2Client = null;
|
||||||
private readonly scope = 'https://www.googleapis.com/auth/spreadsheets';
|
private readonly scope = 'https://www.googleapis.com/auth/spreadsheets';
|
||||||
private readonly sheetsFolder = getAppDataPath() + '/sheets';
|
private readonly sheetsFolder = `${getAppDataPath()}/sheets`;
|
||||||
private readonly client_secret = this.sheetsFolder + '/client_secret.json';
|
private readonly client_secret = `${this.sheetsFolder}/client_secret.json`;
|
||||||
private static authUrl: null | string = null;
|
private static authUrl: null | string = null;
|
||||||
private worksheetId: number = 0;
|
private worksheetId: number = 0;
|
||||||
private sheetId: string = '';
|
private sheetId: string = '';
|
||||||
@@ -79,7 +79,7 @@ class sheet {
|
|||||||
const w = spreadsheets.data.sheets.find((p) => p.properties.title == worksheet);
|
const w = spreadsheets.data.sheets.find((p) => p.properties.title == worksheet);
|
||||||
if (w !== undefined) {
|
if (w !== undefined) {
|
||||||
const endCell = getA1Notation(w.properties.gridProperties.rowCount, w.properties.gridProperties.columnCount);
|
const endCell = getA1Notation(w.properties.gridProperties.rowCount, w.properties.gridProperties.columnCount);
|
||||||
return { worksheetId: w.properties.sheetId, range: worksheet + '!A1:' + endCell };
|
return { worksheetId: w.properties.sheetId, range: `${worksheet}!A1:${endCell}` };
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user