Migrate database callers into voting-app-store #16

Open
opened 2026-06-19 01:38:00 +00:00 by maybe-yiyi · 0 comments
maybe-yiyi commented 2026-06-19 01:38:00 +00:00 (Migrated from codeberg.org)

Background

Handlers are inconsistent: some use voting-app-store, while others call the database directly inline. This splits logic between the store crate and the handlers.

Tasks

  • Move the inline queries used in handlers into voting-app-store methods.
  • Update handlers to call the new repository methods.

Files: domain/ and voting-app-store

Your commits should be structured as { adding a function in voting-app-store, changing handler calls }. It's ok to make multiple different function changes in one commit, just make sure it doesn't get too big (probably limit them to one file or type of function at a time).

**Background** Handlers are inconsistent: some use `voting-app-store`, while others call the database directly inline. This splits logic between the store crate and the handlers. **Tasks** - Move the inline queries used in handlers into `voting-app-store` methods. - Update handlers to call the new repository methods. Files: `domain/` and `voting-app-store` Your commits should be structured as { adding a function in voting-app-store, changing handler calls }. It's ok to make multiple different function changes in one commit, just make sure it doesn't get too big (probably limit them to one file or type of function at a time).
Sign in to join this conversation.
No description provided.