mirror of
https://github.com/makeplane/plane.git
synced 2026-09-01 19:48:42 +02:00
fix(web): add trailing slash to notification list API call (#9521)
list() omitted the trailing slash while every sibling method and the Django route require /users/notifications/. Self-hosted (Traefik) surfaces the upstream 404 as 500; unread badge still works. Fixes makeplane/plane#9489
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user