Purge Rejected Follow requests in daily task #334
1 changed files with 3 additions and 3 deletions
|
@ -34,14 +34,14 @@ test "it prunes old follow requests" do
|
|||
insert(
|
||||
:follow_activity,
|
||||
follower: follower,
|
||||
followd: followee,
|
||||
followed: followee,
|
||||
state: "reject"
|
||||
)
|
||||
|
||||
old_not_rejected_request =
|
||||
insert(:follow_activity,
|
||||
follower: follower,
|
||||
followd: followee,
|
||||
followed: followee,
|
||||
state: "pending",
|
||||
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour)
|
||||
)
|
||||
|
@ -49,7 +49,7 @@ test "it prunes old follow requests" do
|
|||
old_follow_request =
|
||||
insert(:follow_activity,
|
||||
follower: follower,
|
||||
followd: followee,
|
||||
followed: followee,
|
||||
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour),
|
||||
state: "reject"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue