Skip to content

Commit

Permalink
Merge branch 'dev' into managers_user
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanZvunka authored Jan 10, 2024
2 parents 83870bb + bc3808e commit bd17715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/models/RecipeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class RecipeManager extends AbstractManager {

async read(id) {
const [rows] = await this.database.query(
`select *
from ${this.table}
where id = ?`,
`SELECT r.*, u.username from recipe AS r
JOIN user AS u ON u.ID = r.user_ID
WHERE r.ID=?`,
[id]
);
return rows[0];
Expand Down

0 comments on commit bd17715

Please sign in to comment.