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

@@ -10,7 +10,7 @@ export const partReactions = () => {
}
export const partReaction = ({ id }) => {
return db.partReaction.findOne({
return db.partReaction.findUnique({
where: { id },
})
}
@@ -62,7 +62,7 @@ export const deletePartReaction = ({ id }) => {
export const PartReaction = {
user: (_obj, { root }) =>
db.partReaction.findOne({ where: { id: root.id } }).user(),
db.partReaction.findUnique({ where: { id: root.id } }).user(),
part: (_obj, { root }) =>
db.partReaction.findOne({ where: { id: root.id } }).part(),
db.partReaction.findUnique({ where: { id: root.id } }).part(),
}