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

@@ -81,7 +81,7 @@ possible to predict in advance which user will win the domain name. The choice i
## Disclaimer ## Disclaimer
> [!WARNING] > [!IMPORTANT]
> * Domain Watchdog is an opensource project distributed under *GNU Affero General Public License v3.0 or later* license > * 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 > * In the internal opration, everything is done to perform the least possible RDAP requests: rate limit, intelligent
caching system, etc. caching system, etc.

View File

@@ -32,18 +32,3 @@ export async function deleteWatchlist(token: string): Promise<void> {
url: 'watchlists/' + token 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'], denormalizationContext: ['groups' => 'watchlist:create'],
name: 'create' name: 'create'
), ),
/*
new Patch( new Patch(
normalizationContext: ['groups' => 'watchlist:item'], normalizationContext: ['groups' => 'watchlist:item'],
denormalizationContext: ['groups' => 'watchlist:update'] denormalizationContext: ['groups' => 'watchlist:update']
), ),
*/
new Delete(), new Delete(),
], ],
)] )]