We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 787e51e commit 4e79f0eCopy full SHA for 4e79f0e
lib/server-code/api/persistence-item.js
@@ -3,6 +3,10 @@
3
const Backendless = require('backendless');
4
5
function promisify(fn, context) {
6
+ if (Backendless.promisesEnabled()) {
7
+ return fn.bind(context);
8
+ }
9
+
10
return function() {
11
return new Promise((resolve, reject) => {
12
const args = Array.prototype.slice.call(arguments);
@@ -64,14 +68,14 @@ class PersistenceItem {
64
68
* @private
65
69
*/
66
70
get dataStore() {
67
- return Backendless.Data.of(this.___class);
71
+ return Backendless.Persistence.of(this.constructor);
72
}
73
74
/**
75
76
77
static get dataStore() {
- return Backendless.Data.of(this.name);
78
+ return Backendless.Persistence.of(this);
79
80
81
0 commit comments