fix: remove patch watchlist

This commit is contained in:
Maël Gangloff
2024-08-14 17:01:43 +02:00
parent 34d946ba30
commit 2d2d478b32
3 changed files with 9 additions and 22 deletions

View File

@@ -23,14 +23,14 @@ detailed history of events (ownership changes, renewals, etc.) is not feasible w
1. Clone the repository
2. Build the Docker image locally
```shell
docker compose -f compose.yaml -f compose.prod.yaml build --pull --no-cache
```
```shell
docker compose -f compose.yaml -f compose.prod.yaml build --pull --no-cache
```
3. Modify environment variables and add static files to customize your instance
4. Start the project in production environment
```shell
docker compose -f compose.yaml -f compose.prod.yaml up
```
```shell
docker compose -f compose.yaml -f compose.prod.yaml up
```
## How it works?
@@ -81,7 +81,7 @@ possible to predict in advance which user will win the domain name. The choice i
## Disclaimer
> [!WARNING]
> [!IMPORTANT]
> * Domain Watchdog is an opensource project distributed under *GNU Affero General Public License v3.0 or later* license
> * In the internal opration, everything is done to perform the least possible RDAP requests: rate limit, intelligent
caching system, etc.

View File

@@ -32,18 +32,3 @@ export async function deleteWatchlist(token: string): Promise<void> {
url: 'watchlists/' + token
})
}
export async function patchWatchlist(domains: string[], triggers: Event[]) {
const response = await request<Watchlist>({
method: 'PATCH',
url: 'watchlists',
data: {
domains,
triggers
},
headers: {
"Content-Type": 'application/merge-patch+json'
}
})
return response.data
}

View File

@@ -58,10 +58,12 @@ use Symfony\Component\Uid\Uuid;
denormalizationContext: ['groups' => 'watchlist:create'],
name: 'create'
),
/*
new Patch(
normalizationContext: ['groups' => 'watchlist:item'],
denormalizationContext: ['groups' => 'watchlist:update']
),
*/
new Delete(),
],
)]