@se-studio/contentful-rest-api 1.0.42 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -122,13 +122,13 @@ async function revalidateTags(tags, reason) {
|
|
|
122
122
|
await delay(500);
|
|
123
123
|
for (const tag of tags) {
|
|
124
124
|
console.log(`Revalidating tag: ${tag} - ${reason}`);
|
|
125
|
-
revalidateTag(tag);
|
|
125
|
+
revalidateTag(tag, "max");
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
async function revalidateSingleTag(tag, reason) {
|
|
129
129
|
await delay(500);
|
|
130
130
|
console.log(`Revalidating single tag: ${tag} - ${reason}`);
|
|
131
|
-
revalidateTag(tag);
|
|
131
|
+
revalidateTag(tag, "max");
|
|
132
132
|
}
|
|
133
133
|
function delay(ms) {
|
|
134
134
|
return new Promise((resolve) => setTimeout(resolve, ms));
|