🐛 fix: Fixed the issue where telegramRecord was not assigned a value after the account was logged in for the first time.(#19)
This commit is contained in:
parent
e844ac6284
commit
b2042ecdee
1 changed files with 4 additions and 1 deletions
|
|
@ -743,7 +743,10 @@ public class TelegramVerticle extends AbstractVerticle {
|
||||||
.compose(user ->
|
.compose(user ->
|
||||||
DataVerticle.telegramRepository.create(new TelegramRecord(user.id, user.firstName, this.rootPath, this.proxyName))
|
DataVerticle.telegramRepository.create(new TelegramRecord(user.id, user.firstName, this.rootPath, this.proxyName))
|
||||||
)
|
)
|
||||||
.onSuccess(o -> log.info("[%s] %s Authorization Ready".formatted(getRootId(), this.telegramRecord.firstName())))
|
.onSuccess(o -> {
|
||||||
|
telegramRecord = o;
|
||||||
|
log.info("[%s] %s Authorization Ready".formatted(getRootId(), this.telegramRecord.firstName()));
|
||||||
|
})
|
||||||
.onFailure(e -> log.error("[%s] Authorization Ready, but failed to create telegram record: %s".formatted(getRootId(), e.getMessage())));
|
.onFailure(e -> log.error("[%s] Authorization Ready, but failed to create telegram record: %s".formatted(getRootId(), e.getMessage())));
|
||||||
} else {
|
} else {
|
||||||
log.info("[%s] %s Authorization Ready".formatted(getRootId(), this.telegramRecord.firstName()));
|
log.info("[%s] %s Authorization Ready".formatted(getRootId(), this.telegramRecord.firstName()));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue