fix: update google sheet cols
This commit is contained in:
parent
ca716bd672
commit
ef0ced88dc
@ -4,7 +4,6 @@ const { GOOGLE_SHEET_ID, GOOGLE_APPLICATION_CREDENTIALS } = env;
|
||||
|
||||
const auth = GOOGLE_APPLICATION_CREDENTIALS && new google.auth.GoogleAuth({
|
||||
keyFile: GOOGLE_APPLICATION_CREDENTIALS, //the key file
|
||||
//url to spreadsheets API
|
||||
scopes: 'https://www.googleapis.com/auth/spreadsheets'
|
||||
});
|
||||
|
||||
@ -106,7 +105,7 @@ export async function addPerson({ name, confidence, noble_name }: { name: string
|
||||
range: 'Gäste', //range of cells to read from.
|
||||
valueInputOption: 'RAW',
|
||||
resource: {
|
||||
values: [[name, `${Number(confidence).toFixed(2).replace(".", ",")}%`, '', '', '', '', '', '', '', noble_name]]
|
||||
values: [[name, `${Number(confidence).toFixed(2).replace(".", ",")}%`, '', '', '', noble_name]]
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user