mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
check keys of client secrets
This commit is contained in:
@@ -455,8 +455,8 @@ export async function uploadGoogleSheetClientFile(req, res) {
|
||||
|
||||
try {
|
||||
const client = JSON.parse(fs.readFileSync(req.file.path as string, 'utf-8'));
|
||||
const auth = await Sheet.saveClientSecrets(client);
|
||||
res.status(200).send(auth);
|
||||
await Sheet.saveClientSecrets(client);
|
||||
res.status(200).send('OK');
|
||||
} catch (error) {
|
||||
res.status(500).send({ message: error.toString() });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user