This commit is contained in:
Baobhan Sith
2025-04-27 11:30:56 +08:00
parent 5c7d21bdf5
commit e76fc14d97
2 changed files with 11 additions and 11 deletions
@@ -37,9 +37,9 @@ export const settingsService = {
* @returns 返回包含所有设置项的键值对记录
*/
async getAllSettings(): Promise<Record<string, string>> {
console.log('[Service] Calling repository.getAllSettings...');
// console.log('[Service] Calling repository.getAllSettings...');
const settingsArray = await settingsRepository.getAllSettings();
console.log('[Service] Got settings array from repository:', JSON.stringify(settingsArray));
// console.log('[Service] Got settings array from repository:', JSON.stringify(settingsArray));
const settingsRecord: Record<string, string> = {};
settingsArray.forEach(setting => {
settingsRecord[setting.key] = setting.value;