File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ const multiTransport = P.transport({
66 {
77 target : 'pino-roll' ,
88 level : UNO_LOG_LEVEL ,
9- options : {
9+ options : {
1010 destination : './data/logs/unoapi.log' ,
11- frequency : '1d' , // Rotate daily ('1d' for one day)
12- size : '10MB' , // Optional: Rotate also at 10MB file size
13- mkdir : true // Create the logs directory if it doesn't exist
14- }
11+ frequency : '1d' , // Rotate daily ('1d' for one day)
12+ size : '10MB' , // Optional: Rotate also at 10MB file size
13+ mkdir : true , // Create the logs directory if it doesn't exist
14+ } ,
1515 } ,
1616 {
1717 level : UNO_LOG_LEVEL ,
Original file line number Diff line number Diff line change @@ -137,10 +137,10 @@ export const connect = async ({
137137 let whatsappVersion = config . whatsappVersion
138138 if ( ! whatsappVersion ) {
139139 // Absolute minimal headers required to bypass anti-bot detection
140- const headers = {
141- 'sec-fetch-site' : 'none' ,
142- 'user-agent' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
143- }
140+ const headers = {
141+ 'sec-fetch-site' : 'none' ,
142+ 'user-agent' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' ,
143+ }
144144 const { version, error } = await fetchLatestWaWebVersion ( { headers } )
145145 if ( ! error ) {
146146 whatsappVersion = version as WAVersion
You can’t perform that action at this time.
0 commit comments