generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(condo): DOMA-11012 some refactoring
- Loading branch information
1 parent
b421482
commit 22deb7c
Showing
11 changed files
with
198 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 69 additions & 73 deletions
142
apps/condo/domains/user/integration/telegram/BotController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
const STATUS_PENDING = 'pending' | ||
const STATUS_SUCCESS = 'success' | ||
const STATUS_ERROR = 'error' | ||
const TELEGRAM_AUTH_STATUS_PENDING = 'pending' | ||
const TELEGRAM_AUTH_STATUS_SUCCESS = 'success' | ||
const TELEGRAM_AUTH_STATUS_ERROR = 'error' | ||
|
||
const TELEGRAM_AUTH_REDIS_START = 'telegram:start:' | ||
const TELEGRAM_AUTH_REDIS_TOKEN = 'telegram:token:' | ||
const TELEGRAM_AUTH_REDIS_PENDING = 'telegram:pending:' | ||
|
||
module.exports = { | ||
STATUS_PENDING, | ||
STATUS_SUCCESS, | ||
STATUS_ERROR, | ||
TELEGRAM_AUTH_STATUS_PENDING, | ||
TELEGRAM_AUTH_STATUS_SUCCESS, | ||
TELEGRAM_AUTH_STATUS_ERROR, | ||
TELEGRAM_AUTH_REDIS_START, | ||
TELEGRAM_AUTH_REDIS_TOKEN, | ||
TELEGRAM_AUTH_REDIS_PENDING, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.