fix issue where project query didn't include donation settings

This commit is contained in:
Jake Potrebic 2021-04-07 15:01:21 -07:00
parent 1ec491245b
commit 178348f43a
No known key found for this signature in database
GPG Key ID: 7C58557EC9C421F8
3 changed files with 27 additions and 2 deletions

View File

@ -17,6 +17,13 @@ hangar:
base-url: "https://hangar.benndorf.dev"
plugin-upload-dir: "/hangar/uploads"
licences:
- "MIT"
- "Apache 2.0"
- "GPL"
- "LPGL"
- "(custom)"
announcements:
-
text: "This is a staging server for testing purposes. Data could be deleted at any time. email confirmations are disabled. If you wanna help test, sneak into #hangar-dev"

View File

@ -42,6 +42,14 @@ hangar:
auth-url: "http://localhost:8000"
base-url: "http://localhost:3000"
plugin-upload-dir: "/uploads"
ga-code: "UA-38006759-9"
licences:
- "MIT"
- "Apache 2.0"
- "GPL"
- "LPGL"
- "(custom)"
sponsors:
- name: Beer

View File

@ -53,7 +53,12 @@ public interface ProjectsApiDAO {
" p.license_name," +
" p.license_url," +
" p.keywords," +
" p.forum_sync" +
" p.forum_sync," +
" p.donation_enabled," +
" p.donation_email," +
" p.donation_default_amount," +
" p.donation_onetime_amounts," +
" p.donation_monthly_amounts" +
" FROM home_projects hp" +
" JOIN projects p ON hp.id = p.id" +
" WHERE lower(hp.slug) = lower(:slug) AND" +
@ -88,7 +93,12 @@ public interface ProjectsApiDAO {
" p.license_name," +
" p.license_url," +
" p.keywords," +
" p.forum_sync" +
" p.forum_sync," +
" p.donation_enabled," +
" p.donation_email," +
" p.donation_default_amount," +
" p.donation_onetime_amounts," +
" p.donation_monthly_amounts" +
" FROM home_projects hp" +
" JOIN projects p ON hp.id = p.id" +
" WHERE true <filters>" + // Not sure how else to get here a single Where