mirror of
https://github.com/janishutz/libreevent.git
synced 2026-04-28 13:59:23 +02:00
add linting to server folder
This commit is contained in:
@@ -31,7 +31,7 @@ class POSTHandler {
|
||||
db.writeJSONDataSimple( 'seatplan', data.location, dat ).then( resp => {
|
||||
db.getJSONDataSimple( 'locations', data.location ).then( dat => {
|
||||
let s = dat;
|
||||
s[ 'totalSeats' ] = data.data.seatInfo.count
|
||||
s[ 'totalSeats' ] = data.data.seatInfo.count;
|
||||
db.writeJSONDataSimple( 'locations', data.location, s ).then( () => {
|
||||
resolve( resp );
|
||||
} );
|
||||
@@ -44,7 +44,7 @@ class POSTHandler {
|
||||
db.writeJSONDataSimple( 'seatplan', data.location, { 'draft': {}, 'save': data.data } ).then( resp => {
|
||||
db.getJSONDataSimple( 'locations', data.location ).then( dat => {
|
||||
let s = dat;
|
||||
s[ 'totalSeats' ] = data.data.seatInfo.count
|
||||
s[ 'totalSeats' ] = data.data.seatInfo.count;
|
||||
db.writeJSONDataSimple( 'locations', data.location, s ).then( () => {
|
||||
resolve( resp );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user