Skip to content

Commit

Permalink
style: remove unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
uier committed Dec 1, 2023
1 parent 60a7dce commit fd38dff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions supabase/functions/sync-ptt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ import { type Article, type Price, processArticle } from "./lib.ts";
const databaseUrl = Deno.env.get("SUPABASE_DB_URL")!;
const pool = new postgres.Pool(databaseUrl, 3, true);

/*
To invoke:
curl -i --location --request POST 'http://localhost:54321/functions/v1/sync-ptt' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0' \
--header 'Content-Type: application/json'
*/

serve(async () => {
try {
const connection = await pool.connect();
Expand Down
1 change: 0 additions & 1 deletion types/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ export const CONDITIONS = {

export const MENU_ITEMS = [
{ path: "/", text: "查價" },
// { path: '/history', text: 'History' },
{ path: "/about", text: "關於" },
];

0 comments on commit fd38dff

Please sign in to comment.