Updating SQL for saving reservation to DB
This commit is contained in:
parent
bf0852d541
commit
dd46f61ecc
1 changed files with 3 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ export class Reservation {
|
|||
`
|
||||
INSERT INTO reservations
|
||||
(
|
||||
id
|
||||
id,
|
||||
username,
|
||||
password,
|
||||
date_range_start,
|
||||
|
|
@ -154,8 +154,8 @@ export class Reservation {
|
|||
res.id,
|
||||
res.user.username,
|
||||
res.user.password,
|
||||
res.dateRange.start,
|
||||
res.dateRange.end,
|
||||
res.dateRange.start.format('YYYY-MM-DD HH:mm:ss'),
|
||||
res.dateRange.end.format('YYYY-MM-DD HH:mm:ss'),
|
||||
res.opponent.id,
|
||||
res.opponent.name,
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue