File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -954,25 +954,29 @@ The `getBoolean()` method accepts these string values:
954954### Usage Patterns
955955
956956#### Simple Value Retrieval
957+
957958``` typescript
958959const value = await GlobalSettings .get (' key.name' );
959960const valueWithDefault = await GlobalSettings .get (' key.name' , ' default' );
960961```
961962
962963#### Type-Safe Retrieval
964+
963965``` typescript
964966const isEnabled = await GlobalSettings .getBoolean (' feature.enabled' , false );
965967const maxSize = await GlobalSettings .getNumber (' upload.max_size' , 10 );
966968const apiUrl = await GlobalSettings .getUrl (' api.endpoint' );
967969```
968970
969971#### Batch Retrieval
972+
970973``` typescript
971974const settings = await GlobalSettings .getMultiple ([' key1' , ' key2' , ' key3' ]);
972975const groupSettings = await GlobalSettings .getGroupValues (' smtp' );
973976```
974977
975978#### Validation and Checks
979+
976980``` typescript
977981if (await GlobalSettings .isSet (' api.key' )) {
978982 const apiKey = await GlobalSettings .getRequired (' api.key' );
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ The email system provides a comprehensive solution for sending templated emails
1414
1515## Architecture
1616
17- ```
17+ ``` text
1818src/email/
1919├── emailService.ts # Main email service with SMTP integration
2020├── templateRenderer.ts # Pug template compilation and rendering
@@ -540,27 +540,35 @@ export class DeploymentService {
540540### Common Issues
541541
5425421 . ** SMTP Configuration Not Found**
543- ```
543+
544+ ``` text
544545 Error: SMTP configuration is not complete. Please configure SMTP settings in global settings.
545546 ```
547+
546548 ** Solution** : Configure SMTP settings in the global settings interface.
547549
5485502 . ** Template Not Found**
549- ```
551+
552+ ``` text
550553 Error: Template 'welcome' not found at /path/to/templates/welcome.pug
551554 ```
555+
552556 ** Solution** : Ensure the template file exists in the templates directory.
553557
5545583 . ** Invalid Email Address**
555- ```
559+
560+ ``` text
556561 Error: Invalid email address
557562 ```
563+
558564 ** Solution** : Validate email addresses before sending.
559565
5605664 . ** SMTP Connection Failed**
561- ```
567+
568+ ``` text
562569 Error: Connection timeout
563570 ```
571+
564572 ** Solution** : Check SMTP server settings and network connectivity.
565573
566574### Debug Mode
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ npm install
3131- Test files must follow the naming convention: ` <TEST_NAME>.e2e.test.ts ` .
3232- Tests run sequentially in alphabetical order to ensure proper dependencies.
3333
34- ### Current Test Files (in execution order):
34+ ### Current Test Files (in execution order)
3535
36361 . ** ` setup.e2e.test.ts ` ** - Database setup and initialization
37372 . ** ` user-registration.e2e.test.ts ` ** - User registration and role assignment
You can’t perform that action at this time.
0 commit comments