findOne -> findUnique

This commit is contained in:
Rob Cameron
2021-01-07 14:15:07 -08:00
parent 87602079f6
commit 81372de63b
2 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ export const posts = () => {
}
export const post = ({ id }) => {
return db.post.findOne({
return db.post.findUnique({
where: { id },
})
}