Upgrade redwood to 0.25.0

changes from sql to postgress for dev, super stressful
This commit is contained in:
Kurt Hutten
2021-02-28 20:11:48 +11:00
parent 990af22c90
commit 682993fa48
30 changed files with 341 additions and 1967 deletions

View File

@@ -21,7 +21,7 @@ export const requireOwnership = async ({ userId, userName, partId } = {}) => {
}
if (userName) {
const user = await db.user.findOne({
const user = await db.user.findUnique({
where: { userName },
})
@@ -32,7 +32,7 @@ export const requireOwnership = async ({ userId, userName, partId } = {}) => {
if (partId) {
const user = await db.part
.findOne({
.findUnique({
where: { id: partId },
})
.user()