This commit is contained in:
AAfghahi
2021-10-08 13:19:04 -04:00
committed by GitHub
parent a6173f1929
commit e32a12fa0b
2 changed files with 10 additions and 3 deletions

View File

@@ -551,6 +551,10 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
});
// cast the new encrypted extra object into a string
dbToUpdate.encrypted_extra = JSON.stringify(additionalEncryptedExtra);
// this needs to be added by default to gsheets
if (dbToUpdate.engine === 'gsheets') {
dbToUpdate.impersonate_user = true;
}
}
if (dbToUpdate?.parameters?.catalog) {