Skip to content

Commit

Permalink
[fix] optimize welcome message send timing
Browse files Browse the repository at this point in the history
  • Loading branch information
zhgchgli0718 committed Oct 4, 2022
1 parent b28ee58 commit 5fcdece
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.3
1.3.4
10 changes: 5 additions & 5 deletions lib/AndroidFetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ def execute()

puts "[AndroidFetcher] latest review: #{reviews.last.body}, #{reviews.last.createdDateTimestamp}"
setPlatformLatestCheckTimestamp(reviews.last.createdDateTimestamp)
end

# init first time, send welcome message
if latestCheckTimestamp == 0
sendWelcomMessage()
return
end

# init first time, send welcome message
if latestCheckTimestamp == 0
sendWelcomMessage()
elsif reviews.length > 0
processReviews(reviews, platform)
end
end
Expand Down
11 changes: 5 additions & 6 deletions lib/AppleFetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ def execute()

puts "[AppleFetcher] latest review: #{reviews.last.body}, #{reviews.last.createdDateTimestamp}"
setPlatformLatestCheckTimestamp(reviews.last.createdDateTimestamp)
end

# init first time, send welcome message
if latestCheckTimestamp == 0
sendWelcomMessage()
return;
end

# init first time, send welcome message
if latestCheckTimestamp == 0
sendWelcomMessage()
elsif reviews.length > 0
reviews = fullfillAppInfo(reviews)
processReviews(reviews, platform)
end
Expand Down

0 comments on commit 5fcdece

Please sign in to comment.