Merge pull request #482 from answerdev/feat/1.1.2/ui

fix: replace unsubscribe api
This commit is contained in:
dashuai 2023-08-22 11:59:00 +08:00 committed by GitHub
commit b8e938cabc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ export const reopenQuestion = (params: { question_id: string }) => {
}; };
export const unsubscribe = (code: string) => { export const unsubscribe = (code: string) => {
const apiUrl = '/answer/api/v1/user/email/notification'; const apiUrl = '/answer/api/v1/user/notification/unsubscribe';
return request.put(apiUrl, { code }); return request.put(apiUrl, { code });
}; };