Skip to content

Commit

Permalink
Remove ai
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Aug 20, 2024
1 parent 1768602 commit 6eed363
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/upload-to-r2.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import "dotenv/config";
import { getAllPost } from "../src/app/lib/data.js";
import { getAllPost, filterPosts } from "../src/app/lib/data.js";
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";

const posts = await getAllPost();
const response = await getAllPost();
const posts = filterPosts(response.data.posts.nodes);

if ("errors" in posts) {
console.error(posts.errors);
Expand Down

0 comments on commit 6eed363

Please sign in to comment.