mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
chore: fix some typos
Signed-off-by: yudrywet <yudeyao@yeah.net>
This commit is contained in:
parent
5df6e581f9
commit
2daced5ef4
9 changed files with 10 additions and 10 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
// - (basic indexes)
|
||||
// - index for budget query
|
||||
// - index for isolated balance queries
|
||||
// - index for list_transactions / lookup transaciton queries
|
||||
// - index for list_transactions / lookup transaction queries
|
||||
|
||||
var _202407201604_transactions_indexes = &gormigrate.Migration{
|
||||
ID: "202407201604_transactions_indexes",
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export function CloseChannelDialogContent({ alias, channel }: Props) {
|
|||
setFundingTxId(closedChannel.fundingTxId);
|
||||
setStep(step + 1);
|
||||
}
|
||||
toast({ title: "Sucessfully closed channel" });
|
||||
toast({ title: "Successfully closed channel" });
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
toast({
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export function RoutingFeeDialogContent({ channel }: Props) {
|
|||
);
|
||||
|
||||
await reloadChannels();
|
||||
toast({ title: "Sucessfully updated channel" });
|
||||
toast({ title: "Successfully updated channel" });
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
toast({
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ export function LightningMessageboardWidget() {
|
|||
|
||||
setMessageText("");
|
||||
loadMessages();
|
||||
toast({ title: "Sucessfully sent message" });
|
||||
toast({ title: "Successfully sent message" });
|
||||
setDialogOpen(false);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ export function ZapPlanner() {
|
|||
e.preventDefault();
|
||||
setSubmitting(true);
|
||||
try {
|
||||
// validate lighning address
|
||||
// validate lightning address
|
||||
const ln = new LightningAddress(recipientLightningAddress);
|
||||
await ln.fetch();
|
||||
if (!ln.lnurlpData) {
|
||||
|
|
|
|||
|
|
@ -820,7 +820,7 @@ func (httpSvc *HttpService) signMessageHandler(c echo.Context) error {
|
|||
|
||||
if err != nil {
|
||||
return c.JSON(http.StatusInternalServerError, ErrorResponse{
|
||||
Message: fmt.Sprintf("Failed to sign messae: %s", err.Error()),
|
||||
Message: fmt.Sprintf("Failed to sign message: %s", err.Error()),
|
||||
})
|
||||
}
|
||||
return c.JSON(http.StatusOK, signMessageResponse)
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ func (svc *LNDService) SendKeysend(ctx context.Context, amount uint64, destinati
|
|||
"payment_hash": paymentHash,
|
||||
"preimage": preimage,
|
||||
"reason": failureReasonMessage,
|
||||
}).Error("Keysend not succcessful")
|
||||
}).Error("Keysend not successful")
|
||||
return nil, errors.New(failureReasonMessage)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ func (svc *PhoenixService) ListTransactions(ctx context.Context, from, until, li
|
|||
|
||||
logger.Logger.WithFields(logrus.Fields{
|
||||
"url": incomingUrl,
|
||||
}).Infof("Fetching incoming tranasctions: %s", incomingUrl)
|
||||
}).Infof("Fetching incoming transactions: %s", incomingUrl)
|
||||
incomingReq, err := http.NewRequest(http.MethodGet, incomingUrl, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -194,7 +194,7 @@ func (svc *PhoenixService) ListTransactions(ctx context.Context, from, until, li
|
|||
|
||||
logger.Logger.WithFields(logrus.Fields{
|
||||
"url": outgoingUrl,
|
||||
}).Infof("Fetching outgoing tranasctions: %s", outgoingUrl)
|
||||
}).Infof("Fetching outgoing transactions: %s", outgoingUrl)
|
||||
outgoingReq, err := http.NewRequest(http.MethodGet, outgoingUrl, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ func (svc *nip47Service) HandleEvent(ctx context.Context, relay nostrmodels.Rela
|
|||
svc.db.Save(&requestEvent) // we ignore potential DB errors here as this only saves the method and content data
|
||||
|
||||
// TODO: replace with a channel
|
||||
// TODO: update all previous occurences of svc.publishResponseEvent to also use the channel
|
||||
// TODO: update all previous occurrences of svc.publishResponseEvent to also use the channel
|
||||
publishResponse := func(nip47Response *models.Response, tags nostr.Tags) {
|
||||
resp, err := svc.CreateResponse(event, nip47Response, tags, nip47Cipher, appWalletPrivKey)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue