Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfa7bc2ca8 | ||
|
|
f857bab540 | ||
|
|
59f2e1526d |
No files matched your search
@@ -1,3 +1,4 @@
|
||||
Dockerfile
|
||||
tokens
|
||||
files
|
||||
venv
|
||||
|
||||
+2
-1
@@ -19,5 +19,6 @@ RUN npm install
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN npm run build
|
||||
ENTRYPOINT npm run start:prod
|
||||
EXPOSE 3000
|
||||
|
||||
CMD npm run start:prod
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
MessageLocation,
|
||||
MessageReply,
|
||||
MessageText,
|
||||
MessageTextQuery,
|
||||
MessageTextButtons
|
||||
MessageTextButtons,
|
||||
MessageTextQuery
|
||||
} from "./all.dto";
|
||||
import {ensureSuffix, WhatsappSessionManager} from "../whatsapp.service";
|
||||
|
||||
@@ -30,7 +30,11 @@ export class ChattingController {
|
||||
try {
|
||||
const result = await whatsapp.checkNumberStatus(ensureSuffix(request.phone))
|
||||
return {numberExists: result['numberExists']}
|
||||
} catch (e) {
|
||||
} catch (error) {
|
||||
// We need to "touch" the error in order to get unhandled rejections
|
||||
// It logs out the session and stop the app
|
||||
console.log(typeof error)
|
||||
console.log(error)
|
||||
return {numberExists: false}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user