Format project
This commit is contained in:
@@ -103,7 +103,9 @@ export const updateProject = async ({ id, input }: UpdateProjectArgs) => {
|
||||
const descriptionChange =
|
||||
input.description && input.description !== oldProject.description
|
||||
if (titleChange || descriptionChange) {
|
||||
const socialCard = await db.socialCard.findUnique({where: {projectId}})
|
||||
const socialCard = await db.socialCard.findUnique({
|
||||
where: { projectId },
|
||||
})
|
||||
if (socialCard) {
|
||||
return db.socialCard.update({
|
||||
data: { outOfDate: true },
|
||||
|
||||
Reference in New Issue
Block a user