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(
|
insert(
|
||||||
:follow_activity,
|
:follow_activity,
|
||||||
follower: follower,
|
follower: follower,
|
||||||
followd: followee,
|
followed: followee,
|
||||||
state: "reject"
|
state: "reject"
|
||||||
)
|
)
|
||||||
|
|
||||||
old_not_rejected_request =
|
old_not_rejected_request =
|
||||||
insert(:follow_activity,
|
insert(:follow_activity,
|
||||||
follower: follower,
|
follower: follower,
|
||||||
followd: followee,
|
followed: followee,
|
||||||
state: "pending",
|
state: "pending",
|
||||||
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour)
|
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour)
|
||||||
)
|
)
|
||||||
|
@ -49,7 +49,7 @@ test "it prunes old follow requests" do
|
||||||
old_follow_request =
|
old_follow_request =
|
||||||
insert(:follow_activity,
|
insert(:follow_activity,
|
||||||
follower: follower,
|
follower: follower,
|
||||||
followd: followee,
|
followed: followee,
|
||||||
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour),
|
inserted_at: DateTime.utc_now() |> DateTime.add(-31 * 24, :hour),
|
||||||
state: "reject"
|
state: "reject"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue