Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Mar 30, 2024
2 parents 25079ce + 252c905 commit 2bdf509
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions web/docs/data-model/backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const devSeedSimple = async (prisma) => {
}

async function createUser(prisma, data) {
const newUser = await prismaClient.user.create({
const newUser = await prisma.user.create({
data: {
auth: {
create: {
Expand All @@ -180,7 +180,7 @@ async function createUser(prisma, data) {
providerName: 'username',
providerUserId: data.username,
providerData: sanitizeAndSerializeProviderData({
password: data.password
hashedPassword: data.password
}),
},
},
Expand Down Expand Up @@ -218,7 +218,7 @@ async function createUser(
prisma: PrismaClient,
data: { username: string, password: string }
): Promise<AuthUser> {
const newUser = await prismaClient.user.create({
const newUser = await prisma.user.create({
data: {
auth: {
create: {
Expand All @@ -227,7 +227,7 @@ async function createUser(
providerName: 'username',
providerUserId: data.username,
providerData: sanitizeAndSerializeProviderData<'username'>({
password: data.password
hashedPassword: data.password
}),
},
},
Expand Down
8 changes: 4 additions & 4 deletions web/versioned_docs/version-0.13.0/data-model/backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const devSeedSimple = async (prisma) => {
}

async function createUser(prisma, data) {
const newUser = await prismaClient.user.create({
const newUser = await prisma.user.create({
data: {
auth: {
create: {
Expand All @@ -180,7 +180,7 @@ async function createUser(prisma, data) {
providerName: 'username',
providerUserId: data.username,
providerData: sanitizeAndSerializeProviderData({
password: data.password
hashedPassword: data.password
}),
},
},
Expand Down Expand Up @@ -218,7 +218,7 @@ async function createUser(
prisma: PrismaClient,
data: { username: string, password: string }
): Promise<AuthUser> {
const newUser = await prismaClient.user.create({
const newUser = await prisma.user.create({
data: {
auth: {
create: {
Expand All @@ -227,7 +227,7 @@ async function createUser(
providerName: 'username',
providerUserId: data.username,
providerData: sanitizeAndSerializeProviderData<'username'>({
password: data.password
hashedPassword: data.password
}),
},
},
Expand Down

0 comments on commit 2bdf509

Please sign in to comment.