Skip to content

Commit

Permalink
post master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Dec 30, 2024
1 parent 032985b commit 115c784
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/interfaces/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,12 +584,6 @@ module.exports = (theApp: any) => {

_.omit(appCopy, 'apiList') // don't expose the actual apiList

const notificationsApi: NotificationsApi = app.notificationsApi
_.omit(appCopy, 'notificationsApi') // don't expose the actual notifications api manager
// eslint-disable-next-line @typescript-eslint/no-explicit-any
appCopy.notify = (path: string, value: any, source: string) => {
notificationsApi.notify(path, value, source)

const courseApi: CourseApi = app.courseApi
_.omit(appCopy, 'courseApi') // don't expose the actual course api manager
appCopy.getCourse = () => {
Expand All @@ -607,6 +601,13 @@ module.exports = (theApp: any) => {
return courseApi.activeRoute(dest)
}

const notificationsApi: NotificationsApi = app.notificationsApi
_.omit(appCopy, 'notificationsApi') // don't expose the actual notifications api manager
// eslint-disable-next-line @typescript-eslint/no-explicit-any
appCopy.notify = (path: string, value: any, source: string) => {
notificationsApi.notify(path, value, source)


try {
const pluginConstructor: (
app: ServerAPI
Expand Down

0 comments on commit 115c784

Please sign in to comment.