Enhancements

This commit is contained in:
Victor Bodinaud
2025-03-03 10:41:07 +01:00
parent a2f80fce0c
commit 25b0a382c3
4 changed files with 81 additions and 31 deletions

View File

@@ -47,6 +47,7 @@ app.get('/api/ulule/:slug', async (req, res) => {
goal: projectData.goal || 0,
currency: projectData.currency || "EUR",
supporters_count: projectData.supporters_count || 0,
orders_count: projectData.orders_count || 0,
days_left: 0,
percent: projectData.percent || 0,
success: true,
@@ -199,7 +200,7 @@ app.get('/api/ulule/:slug/supporters', async (req, res) => {
reward: reward,
amount: amount,
avatar: supporter.avatar ? (supporter.avatar['90'] || '') : '',
date_joined: supporter.date_joined,
date_ordered: supporter.latest_project_order.created_at || '',
comment: comment,
location: supporter.location || ''
};