Skip to content

Commit

Permalink
#1374 Fix metadata update
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 22, 2020
1 parent 987d823 commit 0931b16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ class Output @Inject() (
def updateMetaData(entity: Entity, metaData: MetaData)(implicit graph: Graph): Unit = {
val e1 = graph.V(entity._id).property(Key[Date]("_createdAt"), metaData.createdAt)
val e2 = metaData.updatedAt.fold(e1)(e1.property(Key[Date]("_updatedAt"), _))
metaData.updatedAt.foreach(e2.property(Key[Date]("_updatedAt"), _))
metaData.updatedAt.fold(e2)(e2.property(Key[Date]("_updatedAt"), _)).iterate()
()
}

def getAuthContext(userId: String): AuthContext =
Expand Down

0 comments on commit 0931b16

Please sign in to comment.