mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
clean up settings of event and general ones
This commit is contained in:
@@ -17,7 +17,7 @@ class POSTHandler {
|
||||
db.getJSONData( 'booked' ).then( dat => {
|
||||
this.allSelectedSeats = dat;
|
||||
} );
|
||||
// this.allSelectedSeats = { 'test2': { 'secAr1s1': { 'id': 'secAr1s1', 'component': 1 } } };
|
||||
// TODO: Load from event db
|
||||
this.ticketTotals = { 'test2': { 'ticket1': 5, 'ticket2': 5 } };
|
||||
this.settings = JSON.parse( fs.readFileSync( path.join( __dirname + '/../../config/settings.config.json' ) ) );
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = ( app, settings ) => {
|
||||
'product_data': {
|
||||
'name': data[ event ][ item ].name,
|
||||
},
|
||||
'currency': events[ event ].currency,
|
||||
'currency': settings.currency,
|
||||
'unit_amount': Math.round( parseFloat( events[ event ][ 'categories' ][ data[ event ][ item ].category ].price[ data[ event ][ item ][ 'ticketOption' ] ] ) * 100 ),
|
||||
},
|
||||
'quantity': data[ event ][ item ].count ?? 1,
|
||||
|
||||
@@ -56,7 +56,7 @@ class TicketGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Maybe move to subprocesses
|
||||
// TODO: FUTURE: move to subprocesses
|
||||
queueHandler () {
|
||||
if ( !this.isRunning ) {
|
||||
this.isRunning = true;
|
||||
|
||||
@@ -8,5 +8,6 @@
|
||||
"name": "libreevent",
|
||||
"yourDomain": "http://localhost:8080",
|
||||
"mailSender": "libreevent <info@libreevent.janishutz.com>",
|
||||
"maxTickets": 10
|
||||
"maxTickets": 10,
|
||||
"currency": "USD"
|
||||
}
|
||||
Reference in New Issue
Block a user