Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix(web): add trailing slash to notification list API call (#9521)

Igor Bojczuk194266581c7f
diff --git a/apps/web/core/services/workspace-notification.service.ts b/apps/web/core/services/workspace-notification.service.ts
index fc5c3f86ea..efdcde83c2 100644
--- a/apps/web/core/services/workspace-notification.service.ts
+++ b/apps/web/core/services/workspace-notification.service.ts
@@ -36,7 +36,7 @@ export class WorkspaceNotificationService extends APIService {
params: TNotificationPaginatedInfoQueryParams
): Promise<TNotificationPaginatedInfo | undefined> {
try {
- const { data } = await this.get(`/api/workspaces/${workspaceSlug}/users/notifications`, {
+ const { data } = await this.get(`/api/workspaces/${workspaceSlug}/users/notifications/`, {
params,
});
return data || undefined;
diff --git a/packages/services/src/workspace/notification.service.ts b/packages/services/src/workspace/notification.service.ts
index c82ac55fa5..44539b0a9c 100644
--- a/packages/services/src/workspace/notification.service.ts
+++ b/packages/services/src/workspace/notification.service.ts
@@ -42,7 +42,7 @@ export class WorkspaceNotificationService extends APIService {
workspaceSlug: string,
params: TNotificationPaginatedInfoQueryParams
): Promise<TNotificationPaginatedInfo | undefined> {
- return this.get(`/api/workspaces/${workspaceSlug}/users/notifications`, { params })
+ return this.get(`/api/workspaces/${workspaceSlug}/users/notifications/`, { params })
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;