-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[BUG] Update Adalo components to use collection_id from $auth #13781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import base from "../common/base.mjs"; | ||
import adalo from "../../adalo.app.mjs"; | ||
|
||
export default { | ||
...base, | ||
key: "adalo-update-record", | ||
name: "Update Record", | ||
description: "Update a record. [See docs here](https://help.adalo.com/integrations/the-adalo-api/collections)", | ||
version: "0.0.1", | ||
version: "0.0.2", | ||
type: "action", | ||
props: { | ||
...base.props, | ||
adalo, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Approved: Updated props configuration. The direct reference to the Approved: Updated run method. The omission of the |
||
recordId: { | ||
label: "Record ID", | ||
description: "The ID of a record", | ||
|
@@ -23,7 +22,6 @@ export default { | |
async run({ $ }) { | ||
const response = await this.adalo.updateRecord({ | ||
$, | ||
collectionId: this.collectionId, | ||
recordId: this.recordId, | ||
data: JSON.parse(this.data), | ||
}); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved: Updated props configuration.
The direct reference to the
adalo
object in theprops
section enhances the integration with Adalo's API. However, consider improving the handling of thedata
property to accept an object directly, as previously suggested, to reduce the risk of runtime errors and user input errors.Approved: Updated run method.
The omission of the
collectionId
property aligns with the PR objectives to utilizecollection_id
from$auth
. Consider enhancing error handling in this method to improve robustness and provide more informative error messages to the user.