diff options
| author | LLLL Colonq <llll@colonq> | 2025-06-01 20:35:12 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-06-01 20:35:12 -0400 |
| commit | be16af95746133d221338f5a70b8ff16cc2fe7da (patch) | |
| tree | e70c10bfc728aa57e4057816311e1e9a4b5c0653 /fig-web/src/Fig/Web/Module | |
| parent | 83cbb69e40fc68606b03b26d70d0a6a0d153fda6 (diff) | |
fig-web: Fix remaining nonsense
Diffstat (limited to 'fig-web/src/Fig/Web/Module')
| -rw-r--r-- | fig-web/src/Fig/Web/Module/Exchange.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fig-web/src/Fig/Web/Module/Exchange.hs b/fig-web/src/Fig/Web/Module/Exchange.hs index 941687e..11af071 100644 --- a/fig-web/src/Fig/Web/Module/Exchange.hs +++ b/fig-web/src/Fig/Web/Module/Exchange.hs @@ -34,7 +34,7 @@ secure a = do wantCur <- formParam "wantCur" wantAmount <- formParam "wantAmount" key <- createOrder a.db.conn $ Order - { creator = creds.email + { creator = creds.twitchId , haveCur = haveCur , haveAmount = haveAmount , wantCur = wantCur @@ -43,7 +43,7 @@ secure a = do respondText $ decodeUtf8 key onPost "/api/exchange/:key" $ authed a \creds -> do key <- pathParam "key" - satisfyOrder a.db.conn key creds.email + satisfyOrder a.db.conn key creds.twitchId onDelete "/api/exchange/:key" $ authed a \_creds -> do key <- pathParam "key" cancelOrder a.db.conn key |
