Skip to content

Commit bcf2feb

Browse files
committed
refactor(whatsapp.business.service): replace hardcoded token with class property
- Updated the token retrieval in the BusinessStartupService to use a class property instead of a hardcoded environment variable. - This change enhances flexibility and maintainability of the service configuration.
1 parent a02ecc8 commit bcf2feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/channel/meta/whatsapp.business.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ export class BusinessStartupService extends ChannelStartupService {
11951195
formData.append('typeFile', mimetype);
11961196
formData.append('messaging_product', 'whatsapp');
11971197

1198-
const token = process.env.FACEBOOK_USER_TOKEN;
1198+
const token = this.token;
11991199

12001200
const headers = { Authorization: `Bearer ${token}` };
12011201
const url = `${this.configService.get<WaBusiness>('WA_BUSINESS').URL}/${

0 commit comments

Comments
 (0)