Fixing DeleteImage params.

This commit is contained in:
Dessalines 2025-01-22 10:12:56 -05:00
parent 6f9eee4e90
commit 79d4a8cb69
2 changed files with 4 additions and 1 deletions

View file

@ -109,6 +109,7 @@ import { SiteResponse } from "./types/SiteResponse";
import { TransferCommunity } from "./types/TransferCommunity";
import { VerifyEmail } from "./types/VerifyEmail";
import {
DeleteImageParamsI,
GetCommentI,
GetCommentsI,
GetCommunityI,
@ -2128,7 +2129,7 @@ export class LemmyHttp extends Controller {
*/
@Delete("/image")
async deleteImage(
@Body() form: DeleteImageParams,
@Queries() form: DeleteImageParamsI,
@Inject() options?: RequestOptions,
) {
return this.#wrapper<DeleteImageParams, SuccessResponse>(

View file

@ -1,3 +1,4 @@
import { DeleteImageParams } from "./types/DeleteImageParams";
import { GetComment } from "./types/GetComment";
import { GetComments } from "./types/GetComments";
import { GetCommunity } from "./types/GetCommunity";
@ -63,3 +64,4 @@ export interface GetRegistrationApplicationI
export interface ListCustomEmojisI extends ListCustomEmojis {}
export interface ListTaglinesI extends ListTaglines {}
export interface ListReportsI extends ListReports {}
export interface DeleteImageParamsI extends DeleteImageParams {}