Add a log message when donates are enabled
Needed to count the number of users who actually received the new config. ``` "logs":[{"message":["Donates enabled"],"level":"log","timestamp":1664702669575}] ``` Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
This commit is contained in:
parent
5271453dcd
commit
0c45b20401
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ export async function handleRequest(request: Request) {
|
|||
}
|
||||
|
||||
if (donatesEnabled) {
|
||||
// To count enabled donations.
|
||||
console.log('Donates enabled');
|
||||
if (request.cf?.country == 'RU') {
|
||||
response.settings = {
|
||||
DonateUrl: DONATE_URL_RU,
|
||||
|
|
Loading…
Add table
Reference in a new issue