|
|
@ -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() { |
|
|
|