fix: Remove unused file
This commit is contained in:
parent
7e7673e676
commit
cb3b59e331
@ -1,41 +0,0 @@
|
|||||||
'use server'
|
|
||||||
|
|
||||||
import { getSession } from './authActions'
|
|
||||||
|
|
||||||
const { PrismaClient } = require('@prisma/client')
|
|
||||||
|
|
||||||
const prisma = new PrismaClient()
|
|
||||||
|
|
||||||
export async function getUserByIdAndPassword({ userId, password }) {
|
|
||||||
return prisma.m_USER.findFirst({
|
|
||||||
where: {
|
|
||||||
USER_ID: userId,
|
|
||||||
PASSWORD: password,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function getUser(userId) {
|
|
||||||
return prisma.m_USER.findUnique({
|
|
||||||
where: {
|
|
||||||
user_id: userId,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function getUsers() {
|
|
||||||
return prisma.m_USER.findMany({
|
|
||||||
where: {
|
|
||||||
// USER_ID: 'daiwajoho01',
|
|
||||||
USER_ID: { in: ['daiwajoho01', 'daiwajoho', 'daiwabutsuryu'] },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function checkSession() {
|
|
||||||
const session = await getSession()
|
|
||||||
|
|
||||||
return {
|
|
||||||
session,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user