Add database integration
This commit is contained in:
@@ -2,9 +2,11 @@ export class User {
|
||||
constructor (gamesStarted) {
|
||||
this.gamesStarted = []
|
||||
|
||||
gamesStarted.forEach(e => {
|
||||
this.gamesStarted.push({ course: e.kurs, game: e.spiel })
|
||||
})
|
||||
if (gamesStarted && gamesStarted.length > 0) {
|
||||
gamesStarted.forEach(e => {
|
||||
this.gamesStarted.push({ course: e.kurs, game: e.spiel })
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user