fix(baileys): update to 7.0.0-rc.5 and fix assertSessions signature

Problem:
- GitHub Actions failing: Expected 1 arguments, but got 2
- Local had outdated Baileys 7.0.0-rc.3 in node_modules
- assertSessions signature changed between versions

Solution:
- Fresh npm install with Baileys 7.0.0-rc.5
- Updated assertSessions to pass only jids (no force param)
- Regenerated Prisma Client after reinstall
- Updated package-lock.json for version consistency

Changes:
- assertSessions now receives 1 argument (jids only)
- Kept force param in method signature for API compatibility
- Removed @ts-expect-error directives (no longer needed)

Tested:
-  Server starts successfully
-  Build passes without errors
-  Lint passes
This commit is contained in:
Anderson Silva 2025-10-06 19:30:13 -03:00
parent 94ddc0dfbe
commit 98b7f15a43
3 changed files with 2216 additions and 1925 deletions

4133
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -71,7 +71,7 @@ export const useVoiceCallsBaileys = async (
socket.on('assertSessions', async (jids, force, callback) => { socket.on('assertSessions', async (jids, force, callback) => {
try { try {
const response = await baileys_sock.assertSessions(jids, force as any); const response = await baileys_sock.assertSessions(jids);
callback(response); callback(response);

View File

@ -4593,8 +4593,10 @@ export class BaileysStartupService extends ChannelStartupService {
return response; return response;
} }
public async baileysAssertSessions(jids: string[], force?: boolean) { // eslint-disable-next-line @typescript-eslint/no-unused-vars
const response = await this.client.assertSessions(jids, force as any); public async baileysAssertSessions(jids: string[], _force?: boolean) {
// Note: _force parameter kept for API compatibility but not used in Baileys 7.0.0-rc.5+
const response = await this.client.assertSessions(jids);
return response; return response;
} }