Skip to content

Commit

Permalink
Hotfix/sns image (#59)
Browse files Browse the repository at this point in the history
* chore: 🤖 metadataBaseをexport

* refactor: 💡 不要なコードを削除

* v0.6.2
  • Loading branch information
sweshelo authored Feb 23, 2025
1 parent 4c7c881 commit f7a12dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medusa",
"version": "0.6.1",
"version": "0.6.2",
"private": true,
"scripts": {
"dev": "next dev --turbo",
Expand Down
1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import './globals.css'
import type { Metadata } from 'next'

export const metadata: Metadata = {
metadataBase: new URL('https://放課後天地創造.club'),
title: {
template: '%s | 閻魔帳',
default: '閻魔帳',
Expand Down
10 changes: 0 additions & 10 deletions src/service/supabase/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,8 @@ export const fetchPlayer = async (playerName: string) => {
.limit(1)
const ranking = rankings?.[0]?.ranking ?? null

// 最高貢献度
const { data: max } = await supabase([playerName])
.from('record')
.select('diff')
.eq('player_name', playerName)
.order('diff', { ascending: false })
.limit(1)
const maxPoint = max?.[0]?.diff

return {
...player,
maxPoint,
ranking,
records,
}
Expand Down

0 comments on commit f7a12dd

Please sign in to comment.