Skip to content

Commit

Permalink
fix(mediumcontext): disambiguate columns in query
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytlogos committed Nov 2, 2020
1 parent b6a4b35 commit 28831aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/bin/database/contexts/mediumContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export class MediumContext extends SubContext {

public getAllMediaTocs(): Promise<Array<{ link?: string; id: number }>> {
return this.query(
"SELECT id, link FROM medium LEFT JOIN medium_toc ON medium.id=medium_toc.medium_id"
"SELECT medium.id, medium_toc.link FROM medium LEFT JOIN medium_toc ON medium.id=medium_toc.medium_id"
);
}

Expand Down

0 comments on commit 28831aa

Please sign in to comment.