Skip to content

Commit 41b4d37

Browse files
committed
CodeRabbit Fix
1 parent 3a5c75e commit 41b4d37

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

components/wordpress_com/actions/upload-media/upload-media.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export default {
7474

7575
const media = response.media[0];
7676

77-
`Media ID “${media.ID})” has been successfully uploaded`;
78-
$.export("$summary", `Media ID “${media.ID})” has been successfully uploaded` +
77+
`Media ID “${media.ID}” has been successfully uploaded`;
78+
$.export("$summary", `Media ID “${media.ID}” has been successfully uploaded` +
7979
"\n- " + warnings.join("\n- "));
8080

8181
console.log(response);

components/wordpress_com/sources/new-comment/new-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default {
7171

7272
await this.db.set("lastCommentId", null); //reset
7373

74-
const response = await this.getWordpressComments(this.wordpress._mock$);
74+
const response = await this.getWordpressComments(this.wordpress._mock$());
7575

7676
const comments = response.comments || [];
7777

components/wordpress_com/sources/new-follower/new-follower.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151

5252
await this.db.set("lastFollowerId", null); //reset
5353

54-
const response = await this.getWordpressFollowers(this.wordpress._mock$);
54+
const response = await this.getWordpressFollowers(this.wordpress._mock$());
5555

5656
const followers = response.subscribers || [];
5757

@@ -82,7 +82,7 @@ export default {
8282

8383
const lastFollowerId = Number(await db.get("lastFollowerId"));
8484

85-
if (!lastFollowerId) await wordpress.initialize(followers, db, "lastPostId");
85+
if (!lastFollowerId) await wordpress.initialize(followers, db, "lastFollowerId");
8686

8787
let maxFollowerIdTracker = lastFollowerId;
8888
const newFollowers = [];

components/wordpress_com/sources/new-post/new-post.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default {
8282

8383
await this.db.set("lastPostId", null); // reset
8484

85-
const response = await this.getWordpressPosts(this.wordpress._mock$);
85+
const response = await this.getWordpressPosts(this.wordpress._mock$());
8686

8787
const posts = (type === "attachment")
8888
? (response.media || [])

0 commit comments

Comments
 (0)