set default value of default description

This commit is contained in:
Sonoko Mizuki 2023-04-22 16:21:10 +09:00
parent 78a3dde2ed
commit e9ef6973d4
3 changed files with 2 additions and 5 deletions

View file

@ -23,7 +23,7 @@ Here are the descriptions of values available to use in the `settings` table:
| FUNCTION_LNURLW | ENABLE | system level switch for LNURLw (bolt card) services | | FUNCTION_LNURLW | ENABLE | system level switch for LNURLw (bolt card) services |
| FUNCTION_LNURLP | DISABLE | system level switch for LNURLp (lightning address) services | | FUNCTION_LNURLP | DISABLE | system level switch for LNURLp (lightning address) services |
| FUNCTION_EMAIL | DISABLE | system level switch for email updates on credits & debits | | FUNCTION_EMAIL | DISABLE | system level switch for email updates on credits & debits |
| DEFAULT_DESCRIPTION | '' | default description of payment | | DEFAULT_DESCRIPTION | 'bolt card service' | default description of payment |
| AWS_SES_ID | | Amazon Web Services - Simple Email Service - access id | | AWS_SES_ID | | Amazon Web Services - Simple Email Service - access id |
| AWS_SES_SECRET | | Amazon Web Services - Simple Email Service - access secret | | AWS_SES_SECRET | | Amazon Web Services - Simple Email Service - access secret |
| AWS_SES_EMAIL_FROM | | Amazon Web Services - Simple Email Service - email from field | | AWS_SES_EMAIL_FROM | | Amazon Web Services - Simple Email Service - email from field |

View file

@ -313,9 +313,6 @@ func Response(w http.ResponseWriter, req *http.Request) {
} }
defalut_description := db.Get_setting("DEFAULT_DESCRIPTION") defalut_description := db.Get_setting("DEFAULT_DESCRIPTION")
if defalut_description == "" {
defalut_description = "WWT withdrawal"
}
response := ResponseData{} response := ResponseData{}
response.Tag = "withdrawRequest" response.Tag = "withdrawRequest"

View file

@ -20,7 +20,7 @@ INSERT INTO settings (name, value) VALUES ('LN_TESTNODE', '');
INSERT INTO settings (name, value) VALUES ('FUNCTION_LNURLW', ''); INSERT INTO settings (name, value) VALUES ('FUNCTION_LNURLW', '');
INSERT INTO settings (name, value) VALUES ('FUNCTION_LNURLP', ''); INSERT INTO settings (name, value) VALUES ('FUNCTION_LNURLP', '');
INSERT INTO settings (name, value) VALUES ('FUNCTION_EMAIL', ''); INSERT INTO settings (name, value) VALUES ('FUNCTION_EMAIL', '');
INSERT INTO settings (name, value) VALUES ('DEFAULT_DESCRIPTION', ''); INSERT INTO settings (name, value) VALUES ('DEFAULT_DESCRIPTION', 'bolt card service');
INSERT INTO settings (name, value) VALUES ('AWS_SES_ID', ''); INSERT INTO settings (name, value) VALUES ('AWS_SES_ID', '');
INSERT INTO settings (name, value) VALUES ('AWS_SES_SECRET', ''); INSERT INTO settings (name, value) VALUES ('AWS_SES_SECRET', '');
INSERT INTO settings (name, value) VALUES ('AWS_SES_EMAIL_FROM', ''); INSERT INTO settings (name, value) VALUES ('AWS_SES_EMAIL_FROM', '');