Skip to content

Commit 21d7f47

Browse files
committed
fix stupid db error
1 parent c254596 commit 21d7f47

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

service/postgres/init.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ CREATE INDEX idx_text_paragraph_era
398398
CREATE INDEX idx_text_paragraph_era_source_book
399399
ON public.text_paragraph (era, source, book);
400400

401-
CREATE INDEX idx_text_paragraph_era_source_book_id
402-
ON text_paragraph(era, source, book, id);
401+
CREATE INDEX idx_tp_era_source_book_id
402+
ON public.text_paragraph(era, source, book, id);
403403

404404
-- For replay
405405
CREATE INDEX idx_replay_user_id

service/src/Handler/Text.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import Import
1313
import System.Directory (doesFileExist)
1414
import System.Random (randomRIO)
1515

16-
getRandomParagraph ::
17-
Text -> Text -> Int -> Handler (Entity TextParagraph)
16+
getRandomParagraph :: Text -> Text -> Int -> Handler (Entity TextParagraph)
1817
getRandomParagraph era source book = do
1918
res <-
2019
runDB $

0 commit comments

Comments
 (0)