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
|
INSERT INTO reservations
|
||||||
(
|
(
|
||||||
id
|
id,
|
||||||
username,
|
username,
|
||||||
password,
|
password,
|
||||||
date_range_start,
|
date_range_start,
|
||||||
|
|
@ -154,8 +154,8 @@ export class Reservation {
|
||||||
res.id,
|
res.id,
|
||||||
res.user.username,
|
res.user.username,
|
||||||
res.user.password,
|
res.user.password,
|
||||||
res.dateRange.start,
|
res.dateRange.start.format('YYYY-MM-DD HH:mm:ss'),
|
||||||
res.dateRange.end,
|
res.dateRange.end.format('YYYY-MM-DD HH:mm:ss'),
|
||||||
res.opponent.id,
|
res.opponent.id,
|
||||||
res.opponent.name,
|
res.opponent.name,
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue