Archived
Add database integration
This commit is contained in:
1 parent
2f4291207c
commit
2106b2a887
3 files changed
+29
-9
No files matched your search
+5
-3
@@ -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