Skip to content

Commit

Permalink
πŸƒ rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rnbsov committed Mar 20, 2024
1 parent 9770039 commit 5f86ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/getUrlAndLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { retrieveUrl } from "./retrieveUrl.ts";

export function getUrlAndLabels(ctx: Filter<MyContext, 'message:entities:url'>) {
// parse url from the message
const { url, labels: labelsArray } = retrieveUrl(ctx)
const { url, labels: customLabels } = retrieveUrl(ctx)

// add default label and source label
const defaultAndSourceLabels = getLabels(ctx)

const labels = [...labelsArray, ...defaultAndSourceLabels]
const labels = [...customLabels, ...defaultAndSourceLabels]

return { url, labels }
}
Expand Down

0 comments on commit 5f86ba3

Please sign in to comment.