Added log character refresh function to log service.
the build was successful

This commit is contained in:
2019-08-07 12:26:59 +02:00
parent 60dcd8a80f
commit c0687d76ad
7 changed files with 145 additions and 13 deletions
+4
View File
@@ -172,6 +172,10 @@ func (r *logRepository) Update(ctx context.Context, log models.Log, update model
updateBson["event"] = *update.EventName
log.EventName = *update.EventName
}
if update.CharacterIDs != nil {
updateBson["characterIds"] = update.CharacterIDs
log.CharacterIDs = update.CharacterIDs
}
err := r.logs.UpdateId(log.ID, bson.M{"$set": updateBson})
if err != nil {