dcramer / peated

https://peated.com
Apache License 2.0
63 stars 13 forks source link

ref: Move DB into shared module #80

Closed dcramer closed 1 year ago

dcramer commented 1 year ago

Opens up the possibility to use the db directly via workers.

codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (9b8736d) 83.81% compared to head (fe64526) 82.10%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #80 +/- ## ========================================== - Coverage 83.81% 82.10% -1.72% ========================================== Files 131 112 -19 Lines 10238 9108 -1130 Branches 855 803 -52 ========================================== - Hits 8581 7478 -1103 + Misses 1657 1630 -27 ``` | [Files](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer) | Coverage Δ | | |---|---|---| | [apps/api/src/lib/api.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9hcGkudHM=) | `100.00% <100.00%> (ø)` | | | [apps/api/src/lib/auth.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9hdXRoLnRz) | `87.01% <100.00%> (ø)` | | | [apps/api/src/lib/badges/index.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9iYWRnZXMvaW5kZXgudHM=) | `95.00% <100.00%> (ø)` | | | [apps/api/src/lib/db.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9kYi50cw==) | `95.41% <100.00%> (ø)` | | | [apps/api/src/lib/email.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9lbWFpbC50cw==) | `83.68% <100.00%> (ø)` | | | [apps/api/src/lib/notifications.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9ub3RpZmljYXRpb25zLnRz) | `69.11% <100.00%> (ø)` | | | [apps/api/src/lib/serializers/badge.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9zZXJpYWxpemVycy9iYWRnZS50cw==) | `100.00% <100.00%> (ø)` | | | [apps/api/src/lib/serializers/bottle.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9zZXJpYWxpemVycy9ib3R0bGUudHM=) | `100.00% <100.00%> (ø)` | | | [apps/api/src/lib/serializers/change.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9zZXJpYWxpemVycy9jaGFuZ2UudHM=) | `24.59% <100.00%> (ø)` | | | [apps/api/src/lib/serializers/collection.ts](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer#diff-YXBwcy9hcGkvc3JjL2xpYi9zZXJpYWxpemVycy9jb2xsZWN0aW9uLnRz) | `50.00% <100.00%> (ø)` | | | ... and [70 more](https://app.codecov.io/gh/dcramer/peated/pull/80?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer) | | ... and [19 files with indirect coverage changes](https://app.codecov.io/gh/dcramer/peated/pull/80/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=David+Cramer)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.