(ms)
| 14 | const DELAY_BEFORE_SECOND_PURGE = 30 * 1000 |
| 15 | |
| 16 | const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) |
| 17 | |
| 18 | async function purgeFastlyBySurrogateKey({ apiToken, serviceId, surrogateKey }) { |
| 19 | const safeServiceId = encodeURIComponent(serviceId) |