isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

Fix: query for site through repo #630

Closed alexanderleegs closed 1 year ago

alexanderleegs commented 1 year ago

This PR fixes an issue where we were querying for the github repo name of a site through the Site table (which contains the human readable version of the name) instead of through the Repo table (which contains the desired string). All existing queries referencing the Site table for the github sitename have been changed to reference the Repo table instead.

alexanderleegs commented 1 year ago

lgtm but could you remind me again what Site.name references?

Site.name is the human readable version of the site name (e.g. Meridian Primary), while Repo.name is the github name (e.g. moe-meridianpri)