Skip to content

Commit

Permalink
fix sql
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Aug 8, 2024
1 parent 18e48d3 commit d2c05d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/desktop/src/services/backend/globalAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function signUp({
const name = nanoid(10);
try {
const result = await globalPrisma.$transaction(async (tx) => {
const user = await tx.user.create({
const user: User = await tx.user.create({
data: {
name: name,
id: name,
Expand All @@ -119,7 +119,7 @@ async function signUp({
if (userSemChannel) {
await tx.userSemChannel.create({
data: {
userUid: user.id,
userUid: user.uid,
channel: userSemChannel
}
});
Expand Down Expand Up @@ -152,7 +152,7 @@ export async function signUpByPassword({

try {
const result = await globalPrisma.$transaction(async (tx) => {
const user = await tx.user.create({
const user: User = await tx.user.create({
data: {
nickname,
avatarUri: avatar_url,
Expand All @@ -171,7 +171,7 @@ export async function signUpByPassword({
if (userSemChannel) {
await tx.userSemChannel.create({
data: {
userUid: user.id,
userUid: user.uid,
channel: userSemChannel
}
});
Expand Down

0 comments on commit d2c05d1

Please sign in to comment.