calendar fixes
This commit is contained in:
parent
136da08b70
commit
8c597fd68d
8 changed files with 70 additions and 27 deletions
|
@ -11,6 +11,7 @@ export default abstract class CalendarService {
|
|||
return await dataSource
|
||||
.getRepository(calendar)
|
||||
.createQueryBuilder("calendar")
|
||||
.leftJoinAndSelect("calendar.type", "type")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
@ -28,6 +29,7 @@ export default abstract class CalendarService {
|
|||
return await dataSource
|
||||
.getRepository(calendar)
|
||||
.createQueryBuilder("calendar")
|
||||
.leftJoinAndSelect("calendar.type", "type")
|
||||
.where("calendar.id = :id", { id: id })
|
||||
.getOneOrFail()
|
||||
.then((res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue