Skip to content

Commit c04902b

Browse files
committed
fix(discord): fix a bug that discord notifier notifies with wrong number of data
1 parent 951fafa commit c04902b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/notifiers/discord.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class DiscordNotifier extends BaseNotifier {
7676
if (followerLogs.length > 0) {
7777
const field = this.generateEmbedField(
7878
followerLogs,
79-
Logger.format("🎉 {} new {}", logs.length, pluralize("follower", logs.length)),
79+
Logger.format("🎉 {} new {}", followerLogs.length, pluralize("follower", logs.length)),
8080
);
8181

8282
newFields.push(field);
@@ -86,7 +86,7 @@ export class DiscordNotifier extends BaseNotifier {
8686
if (unfollowerLogs.length > 0) {
8787
const field = this.generateEmbedField(
8888
unfollowerLogs,
89-
Logger.format("❌ {} {}", logs.length, pluralize("unfollower", logs.length)),
89+
Logger.format("❌ {} {}", followerLogs.length, pluralize("unfollower", logs.length)),
9090
);
9191

9292
newFields.push(field);

0 commit comments

Comments
 (0)