1
0
Fork 0
mirror of synced 2024-07-11 17:26:01 +12:00

Allow deleting cell

This commit is contained in:
Adria Navarro 2023-09-28 12:42:42 +02:00
parent 606bad7f4d
commit c202f88b6d

View file

@ -212,7 +212,7 @@ class GoogleSheetsIntegration implements DatasourcePlus {
await setupCreationAuth(this.config)
// Initialise oAuth client
let googleConfig = await configs.getGoogleDatasourceConfig()
const googleConfig = await configs.getGoogleDatasourceConfig()
if (!googleConfig) {
throw new HTTPError("Google config not found", 400)
}
@ -551,6 +551,10 @@ class GoogleSheetsIntegration implements DatasourcePlus {
typeof query.row === "string" ? JSON.parse(query.row) : query.row
for (let key in updateValues) {
row[key] = updateValues[key]
if (row[key] === null) {
row[key] = ""
}
}
await row.save()
return [