check keys of client secrets

This commit is contained in:
arc-alex
2023-11-26 17:11:55 +01:00
parent 7b34c8f3b1
commit 6880f459b6
2 changed files with 33 additions and 23 deletions
@@ -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() });
}