Skip to content

Commit

Permalink
fix: timing of jobs and conditions not allowing daily post
Browse files Browse the repository at this point in the history
  • Loading branch information
treipatru committed Jul 15, 2024
1 parent 0d009b7 commit be1e254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/post/is-allowed-to-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export function isAllowedToPost(posts: Status[]): boolean {
const now = new Date();
const hoursDiff = differenceInHours(now, posts[0].createdAt);

return hoursDiff < 24;
return hoursDiff < 23;
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const bree = new Bree({
{
name: 'daily-movie',
timeout: '10s',
interval: '1d',
interval: 'at 11:45 am',
},
],

Expand Down

0 comments on commit be1e254

Please sign in to comment.