mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
fix issue where project query didn't include donation settings
This commit is contained in:
parent
1ec491245b
commit
178348f43a
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user