Skip to content

Commit

Permalink
Allow lengthOfGracePeriodInDays to be set in debug API (#349)
Browse files Browse the repository at this point in the history
* chore: allow lengthOfGracePeriodInDays to be set in debug api

* chore: pr comments

* chore: pr comments

* chore: pr comments
  • Loading branch information
sebbi08 authored Jan 16, 2025
1 parent abc25ed commit 88270d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TransportServices } from "@nmshd/runtime";
import { Inject } from "@nmshd/typescript-ioc";
import { Accept, DELETE, GET, Path, POST } from "@nmshd/typescript-rest";
import { Accept, DELETE, GET, Path, POST, QueryParam } from "@nmshd/typescript-rest";
import { Envelope } from "../../../infrastructure";
import { BaseController } from "../common/BaseController";

Expand All @@ -12,8 +12,8 @@ export class IdentityDeletionProcessController extends BaseController {

@POST
@Accept("application/json")
public async initiateIdentityDeletionProcess(): Promise<Envelope> {
const result = await this.transportServices.identityDeletionProcesses.initiateIdentityDeletionProcess();
public async initiateIdentityDeletionProcess(@QueryParam("lengthOfGracePeriodInDays") lengthOfGracePeriodInDays?: number): Promise<Envelope> {
const result = await this.transportServices.identityDeletionProcesses.initiateIdentityDeletionProcess({ lengthOfGracePeriodInDays });
return this.ok(result);
}

Expand Down

0 comments on commit 88270d2

Please sign in to comment.