diff --git a/docs/SETTINGS.md b/docs/SETTINGS.md index 9d3959e..2337347 100644 --- a/docs/SETTINGS.md +++ b/docs/SETTINGS.md @@ -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_LNURLP | DISABLE | system level switch for LNURLp (lightning address) services | | 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_SECRET | | Amazon Web Services - Simple Email Service - access secret | | AWS_SES_EMAIL_FROM | | Amazon Web Services - Simple Email Service - email from field | diff --git a/lnurlw/lnurlw_request.go b/lnurlw/lnurlw_request.go index f995339..50bc025 100644 --- a/lnurlw/lnurlw_request.go +++ b/lnurlw/lnurlw_request.go @@ -313,9 +313,6 @@ func Response(w http.ResponseWriter, req *http.Request) { } defalut_description := db.Get_setting("DEFAULT_DESCRIPTION") - if defalut_description == "" { - defalut_description = "WWT withdrawal" - } response := ResponseData{} response.Tag = "withdrawRequest" diff --git a/sql/settings.sql b/sql/settings.sql index a274333..31dfe70 100644 --- a/sql/settings.sql +++ b/sql/settings.sql @@ -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_LNURLP', ''); 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_SECRET', ''); INSERT INTO settings (name, value) VALUES ('AWS_SES_EMAIL_FROM', '');