Database queries have been moved to a separate queries.rs file, even when they are only used in one place. This separation can make the code harder to follow and leads to dead code (e.g., the unused GET_USER_BY_ID constant). Queries should be defined close to where they are used.
To fix:
- Move single-use queries from
queries.rs into the module where they are executed.
Migrated from Linear: REP-12
Database queries have been moved to a separate
queries.rsfile, even when they are only used in one place. This separation can make the code harder to follow and leads to dead code (e.g., the unusedGET_USER_BY_IDconstant). Queries should be defined close to where they are used.To fix:
queries.rsinto the module where they are executed.Migrated from Linear: REP-12