Commit graph

58 commits

Author SHA1 Message Date
LukeMathWalker
d54f33858d End of chapter. 2021-08-01 14:57:02 +01:00
LukeMathWalker
d7999e7241 Using two types to fetch. 2021-08-01 11:11:56 +01:00
LukeMathWalker
e9d4b14dcf Add error. 2021-07-28 09:35:34 +01:00
LukeMathWalker
5b87b2449d Add query. 2021-07-27 09:09:20 +01:00
LukeMathWalker
32c03a55c5 Refactor tests. 2021-07-25 17:37:00 +01:00
LukeMathWalker
83826d0166 Add handler. 2021-07-25 16:40:01 +01:00
LukeMathWalker
16ba42dccf Add handler. 2021-07-22 08:31:57 +01:00
LukeMathWalker
c1caed5404 Fix name conflict with name from the bunyan format. 2021-07-16 09:02:45 +01:00
LukeMathWalker
bc22cdca68 Update to actix-web 4.0.0-beta.8. 2021-07-09 08:42:43 +01:00
LukeMathWalker
7b64134fe7 Refactor error handling for confirm handler. 2021-05-12 22:33:43 +01:00
LukeMathWalker
2b3dae3a6a Remove unnecessary log statements. 2021-05-12 22:12:41 +01:00
LukeMathWalker
4e04ade2ed Use anyhow. 2021-05-12 09:08:38 +01:00
LukeMathWalker
c6e88e8f8e Use thiserror. 2021-05-10 09:57:49 +01:00
LukeMathWalker
f0aee87a00 Layering. 2021-05-09 18:36:31 +01:00
LukeMathWalker
c14296a34d Return 500 if email delivery fails. 2021-05-01 16:51:55 +01:00
LukeMathWalker
80ba8ace26 Update to latest actix-web. 2021-05-01 16:19:24 +01:00
LukeMathWalker
d05c9c9491 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:54:39 +01:00
LukeMathWalker
b7ed1b4c28 cargo fmt. 2021-04-02 11:51:39 +01:00
LukeMathWalker
c58675a5a0 Use a SQL transaction. 2021-03-13 10:08:54 +00:00
LukeMathWalker
b21e9cc99c Final push. 2021-03-11 23:11:38 +00:00
LukeMathWalker
a8f1bc9024 Generate random token. 2021-03-11 22:07:17 +00:00
LukeMathWalker
9a3420073c Add new test. 2021-03-11 21:40:39 +00:00
LukeMathWalker
b3ad683b9a Roudntrip test. 2021-03-11 09:24:57 +00:00
LukeMathWalker
967b16b19b Get a 404. 2021-03-09 22:40:14 +00:00
LukeMathWalker
a631932f05 Green test. 2021-03-09 21:19:16 +00:00
LukeMathWalker
123e7f139c Fix. 2021-03-08 23:02:39 +00:00
LukeMathWalker
3f3c73a93e Refactor subscribe. 2021-03-08 22:54:17 +00:00
LukeMathWalker
bdddc29ac1 Confirmation link (static). 2021-03-08 22:40:58 +00:00
LukeMathWalker
310ffb01a5 Send static confirmation email. 2021-03-08 21:41:34 +00:00
LukeMathWalker
d2fd3fe1fa Populate status column. 2021-03-07 18:53:45 +00:00
LukeMathWalker
3359c5f921 Fix failing test. 2021-02-15 21:26:43 +00:00
LukeMathWalker
e562b7df6f Add address. 2021-02-14 16:41:45 +00:00
LukeMathWalker
55da2e2e2e Share startup logic. 2021-02-14 16:27:04 +00:00
LukeMathWalker
d5e09e849b Update to tokio 1. 2021-02-11 09:23:13 +00:00
LukeMathWalker
c6d65cf113 Fix tests 2021-01-17 11:46:40 +00:00
LukeMathWalker
b40748ef7b Refactor tests. 2021-01-17 00:43:04 +00:00
LukeMathWalker
74b7b1c536 Use tokio::test. 2021-01-17 00:27:03 +00:00
LukeMathWalker
9ba07c4834 Timeout test. 2021-01-17 00:26:30 +00:00
LukeMathWalker
a8f3a5ff47 Error for status. 2021-01-16 23:57:57 +00:00
LukeMathWalker
391f29de3d Do not allocate.
Unhappy path tests.
2021-01-16 23:54:21 +00:00
LukeMathWalker
8fe02f6c42 Remove dbg 2021-01-16 23:03:38 +00:00
LukeMathWalker
3145991669 Happy case test. 2021-01-16 23:01:08 +00:00
LukeMathWalker
50e660f82d Ask for two content versions. 2021-01-16 15:59:41 +00:00
LukeMathWalker
eaa8390e85 Add configuration for email client. 2021-01-16 15:11:17 +00:00
LukeMathWalker
9a0e46549b Remove full path import. 2021-01-13 08:35:36 +00:00
LukeMathWalker
d8048db840 Register email client. 2021-01-11 10:01:48 +00:00
LukeMathWalker
b7634725db Add HttpClient. 2021-01-11 09:37:04 +00:00
LukeMathWalker
11f2f7d4db Formatting 2021-01-11 08:32:55 +00:00
LukeMathWalker
e93d6b9955 Add email sketch. 2021-01-10 17:27:54 +00:00
LukeMathWalker
9dd9aaffd6 Use TryInto. 2020-12-29 10:00:11 +00:00