Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Sep 4, 2024
1 parent b6e8a65 commit 25ec1eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/org/maproulette/jobs/SchedulerActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class SchedulerActor @Inject() (

// Update is_global based on bounding box
val updateGlobalQuery =
"""UPDATE challenges
s"""UPDATE challenges
SET is_global = (
CASE
WHEN (ST_XMax(bounding)::numeric - ST_XMin(bounding)::numeric) > 180 THEN TRUE
Expand Down
2 changes: 1 addition & 1 deletion conf/evolutions/default/96.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ SET is_global = (
# --!Downs
-- Drop the 'is_global' column
ALTER TABLE IF EXISTS challenges
DROP COLUMN is_global;
DROP COLUMN is_global;
2 changes: 2 additions & 0 deletions test/org/maproulette/provider/ChallengeProviderSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ChallengeProviderSpec extends PlaySpec with MockitoSugar {
DateTime.now(),
None,
false,
false,
None,
ChallengeGeneral(101, 1, ""),
ChallengeCreation(),
Expand All @@ -30,6 +31,7 @@ class ChallengeProviderSpec extends PlaySpec with MockitoSugar {
DateTime.now(),
None,
false,
false,
None,
ChallengeGeneral(101, 1, ""),
ChallengeCreation(),
Expand Down

0 comments on commit 25ec1eb

Please sign in to comment.