provide ics link
This commit is contained in:
parent
8c597fd68d
commit
91c3fde688
8 changed files with 155 additions and 4 deletions
|
@ -25,7 +25,7 @@ export default abstract class CalendarService {
|
|||
* @description get calendar by id
|
||||
* @returns {Promise<calendar>}
|
||||
*/
|
||||
static async getById(id: number): Promise<calendar> {
|
||||
static async getById(id: string): Promise<calendar> {
|
||||
return await dataSource
|
||||
.getRepository(calendar)
|
||||
.createQueryBuilder("calendar")
|
||||
|
@ -68,7 +68,7 @@ export default abstract class CalendarService {
|
|||
.getRepository(calendar)
|
||||
.createQueryBuilder("calendar")
|
||||
.leftJoinAndSelect("calendar.type", "type")
|
||||
.where("type.nscdr = :nscdr)", { nscdr: true })
|
||||
.where("type.nscdr = :nscdr", { nscdr: true })
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue