Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: getChatById when sending @ number. #1919

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
fix: getChatById when sending @ number.
Saifallak authored Jun 21, 2024
commit 66d125921d118ada3c844dd5d1e99b75f8e0810b
2 changes: 1 addition & 1 deletion src/controller/deviceController.ts
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Chat } from '@wppconnect-team/wppconnect';

Check failure on line 16 in src/controller/deviceController.ts

GitHub Actions / lint

'Chat' is defined but never used
import { Request, Response } from 'express';

import { contactToArray, unlinkAsync } from '../util/functions';
@@ -388,8 +388,8 @@

try {
let result;
for (const contato of contactToArray(phone as string, isGroup)) {

Check failure on line 391 in src/controller/deviceController.ts

GitHub Actions / build

Argument of type 'string | string[] | ParsedQs | ParsedQs[] | undefined' is not assignable to parameter of type 'boolean | undefined'.
result = await req.client.getNumberProfile(contato);
result = await req.client.getChatById(contato);
}

return res.status(200).json(result);