Skip to content

Commit 33091a0

Browse files
committed
chore: clean up types
1 parent eceef2f commit 33091a0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/posts/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import {
1818
} from "@/components/ui/pagination";
1919

2020
import { Section, Container, Prose } from "@/components/craft";
21-
import { Metadata } from "next";
2221
import { PostCard } from "@/components/posts/post-card";
2322
import { FilterPosts } from "@/components/posts/filter";
2423
import { SearchInput } from "@/components/posts/search-input";
2524

25+
import type { Metadata } from "next";
26+
2627
export const metadata: Metadata = {
2728
title: "Blog Posts",
2829
description: "Browse all our blog posts",

lib/wordpress.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import querystring from "query-string";
66
import { revalidateTag } from "next/cache";
77
import { headers } from "next/headers";
88

9-
import {
9+
import type {
1010
Post,
1111
Category,
1212
Tag,
@@ -435,9 +435,9 @@ export async function searchAuthors(query: string): Promise<Author[]> {
435435
// Helper function to revalidate WordPress data
436436
export async function revalidateWordPressData(tags: string[] = ["wordpress"]) {
437437
try {
438-
tags.forEach((tag) => {
438+
for (const tag of tags) {
439439
revalidateTag(tag);
440-
});
440+
}
441441
} catch (error) {
442442
console.error("Failed to revalidate WordPress data:", error);
443443
throw new Error("Failed to revalidate WordPress data");

0 commit comments

Comments
 (0)