mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 01:49:37 -06:00
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:
parent
94ddc0dfbe
commit
98b7f15a43
4133
package-lock.json
generated
4133
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user