Skip to content

Commit

Permalink
feat: generate default id by nanoid
Browse files Browse the repository at this point in the history
  • Loading branch information
gibeom42 committed Jul 25, 2024
1 parent 4e340eb commit 869724d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/db/schema/invitation_response.query.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use server";
import { nanoid } from "nanoid";

import { db } from "~/lib/db";
import {
Expand All @@ -16,7 +17,7 @@ export async function createInvitationResponses(
reason: string,
) {
const data: InvitationResponseInsert = {
id: "asdf",
id: nanoid(),
participant_name: participant_name,
attendance: attendance,
reason: reason,
Expand Down

0 comments on commit 869724d

Please sign in to comment.