Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: crazy_scoreをDBに保存する関数の実装 #66

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

kanakanho
Copy link
Contributor

Closes #47

説明

crazy_scoreをDBに保存するように

現在の動作 (更新前)

なし

新しい動作 (更新後)

const insertCrazyScore = async (
  table: Omit<TablesInsert<'crazy_score'>, 'id' | 'created_at' | 'deleted_at'>,
): Promise<Tables<'crazy_score'> | undefined> => {
  const { data } = await supabase.from('crazy_score').upsert(table).select('*');

Omit<TablesInsert<'crazy_score'>, 'id' | 'created_at' | 'deleted_at'> を受け取って、挿入後のPromise<Tables<'crazy_score'>>を返す

追加情報

@SatooRu65536 SatooRu65536 merged commit 764d578 into main Nov 5, 2024
2 checks passed
@SatooRu65536 SatooRu65536 deleted the issue/47-insert-crazy_score branch November 5, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

評価を追加する関数を実装する
2 participants