add linting to server folder

This commit is contained in:
janis
2023-10-05 13:57:35 +02:00
parent 5c5462186f
commit dbb1e7a977
7 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -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 );
} );