protected async unSoftDeleteImage()

in src/base-commands/api.ts [107:119]


  protected async unSoftDeleteImage(id: string) {
    const endpoint = `${this.profile!.mediaApiHost}images/${id}/undelete`

    const url = new URL(endpoint)

    const response = await this.http!.put(url)

    if (response.status === 202) {
      return
    }

    throw new Error(`Failed to un-soft-delete image ${id}, response status ${response.status}`)
  }