Browse Source

create score db api call

pull/8/head
Tim Glasgow 2 years ago
parent
commit
5a0f9393ac
  1. 13
      squarenotsquare/src/realm/DbAPI.js

13
squarenotsquare/src/realm/DbAPI.js

@ -8,21 +8,26 @@ class DatabaseAPI {
}
getAllSystemValues() {
return systemRepo.getAllSystemValues();
return this.systemRepo.getAllSystemValues();
}
createSystemValue(key, value) {
systemRepo.createSystemValue(key, value);
this.systemRepo.createSystemValue(key, value);
return true;
}
deleteSystemValue(key) {
systemRepo.deleteSystemValue(key);
this.systemRepo.deleteSystemValue(key);
return true;
}
getSystemValue(key) {
return systemRepo.getSystemKeyValue(key);
return this.systemRepo.getSystemKeyValue(key);
}
createScore(user, score) {
this.scoreRepo.createScore(user, score);
return true;
}
async initDB() {

Loading…
Cancel
Save