Skip to content

Commit

Permalink
fix types error
Browse files Browse the repository at this point in the history
  • Loading branch information
dev committed Dec 6, 2023
1 parent f5a2b5f commit 69c660d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 55 deletions.
54 changes: 0 additions & 54 deletions phoenix-api/migrations/0000.up.sql

This file was deleted.

3 changes: 2 additions & 1 deletion phoenix-blog/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Blog, Page } from '@phoenix/core/entities';
import type { FC } from 'hono/jsx';
import { Base } from './_base';
import { date } from '../utils';
import { HtmlEscapedString } from "hono/utils/html";

export async function index(ctx: Context): Promise<Response> {
// const reqUrl = new URL(ctx.req.url);
Expand All @@ -15,7 +16,7 @@ export async function index(ctx: Context): Promise<Response> {
getPosts(ctx, domain),
]);

const html = IndexTemplate({ blog, posts });
const html = IndexTemplate({ blog, posts }) as HtmlEscapedString;
const etag = await sha256Sum(html);
const cacheHit = handleCaching(ctx, 'public, no-cache, must-revalidate', etag);
if (cacheHit) {
Expand Down

0 comments on commit 69c660d

Please sign in to comment.