mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-27 16:07:02 +00:00
Merge pull request #3586 from deqiying/codex/fix-subscription-revoke-soft-delete
修复订阅撤销操作实际上是软删除的bug
This commit is contained in:
@@ -117,7 +117,7 @@ export async function extend(
|
||||
* @returns Success confirmation
|
||||
*/
|
||||
export async function revoke(id: number): Promise<{ message: string }> {
|
||||
const { data } = await apiClient.delete<{ message: string }>(`/admin/subscriptions/${id}`)
|
||||
const { data } = await apiClient.post<{ message: string }>(`/admin/subscriptions/${id}/revoke`)
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
@@ -1612,6 +1612,7 @@ export interface UserSubscription {
|
||||
monthly_window_start: string | null
|
||||
created_at: string
|
||||
updated_at: string
|
||||
revoked_at?: string | null
|
||||
expires_at: string | null
|
||||
user?: User
|
||||
group?: Group
|
||||
|
||||
Reference in New Issue
Block a user