@raketa-cloud/admin 0.0.95 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cloud/Settings.js
CHANGED
|
@@ -7,12 +7,16 @@ import {
|
|
|
7
7
|
export default class Settings extends RaketaClient {
|
|
8
8
|
async find(locale) {
|
|
9
9
|
const {
|
|
10
|
-
setting
|
|
10
|
+
setting,
|
|
11
11
|
} = await this.query(SettingDocument, {
|
|
12
12
|
locale,
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
if (!setting?.value) {
|
|
16
|
+
this.logError(`Cannot find settings for ${locale} locale.`)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return setting.value;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
async update(locale, params) {
|