I’m storing user information in datastore with the key is user email and value is user detail. In my source I would like to access a list of user emails but the code throws error
export default {
name: "Contact Updated",
version: "0.0.1",
key: "contact-updated",
description: "Triggers when an existing contact is updated.",
props: {
db: "$.service.db",
http: "$.interface.http",
integrationAccount: {
type: "string",
label: "Account",
options() {
return this.db.get('accounts').keys();
},
},
},
}
this is the error
pd deploy sources/contact-updated/contact-updated.mjs
Configuring props...
Configuring prop db...
Configuring prop http...
Configuring prop integrationAccount...
---------------
error
TypeError: Cannot read property 'get' of null