From 5a0f9393acfe5d5a8dabfcf091d0e907dc1c7583 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sat, 6 Aug 2022 17:27:48 -0500 Subject: [PATCH] create score db api call --- squarenotsquare/src/realm/DbAPI.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/squarenotsquare/src/realm/DbAPI.js b/squarenotsquare/src/realm/DbAPI.js index f85a4d0..fc6e746 100644 --- a/squarenotsquare/src/realm/DbAPI.js +++ b/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() {