« first day (2036 days earlier)      last day (2081 days later) » 

 
2 hours later…
10:16 AM
1 message moved from Android
 
 
1 hour later…
@Queen k
 
 
1 hour later…
@Queen k
 
 
2 hours later…
Now calling that function like:
```
db.write(data, doc)
.then((data) => {
console.log(data); // undefined
});
```
 
1 message moved from JavaScript
 
I call that function like this:
db.write(data, doc)
.then((res) => {
console.log(res); // undefined!
});
 
1 message moved from JavaScript
 
 
2 hours later…
 
2 hours later…
so I have an api file (granted I haven't tested it yet in this application but am going off prior issues) and I plan to import the function from my api file into a method to resolve an ajax request for a logged user (this function is in the component's class):
method(){
const result = await apiMethod(param);
}
 
1 message moved from JavaScript
 
 
2 hours later…

« first day (2036 days earlier)      last day (2081 days later) »