mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
per space templates
This commit is contained in:
parent
574139ae21
commit
558d90d2ba
10 changed files with 73 additions and 36 deletions
|
@ -229,12 +229,12 @@ func processDocument(ctx domain.RequestContext, store *domain.Store, filename, j
|
|||
return
|
||||
}
|
||||
|
||||
err = store.Document.Update(ctx, newDocument) // TODO review - this seems to write-back an unaltered record from that read above, but within that it calls searches.UpdateDocument() to reindex the doc.
|
||||
if err != nil {
|
||||
ctx.Transaction.Rollback()
|
||||
err = errors.Wrap(err, "cannot updater new document")
|
||||
return
|
||||
}
|
||||
// err = store.Document.Update(ctx, newDocument) // TODO review - this seems to write-back an unaltered record from that read above, but within that it calls searches.UpdateDocument() to reindex the doc.
|
||||
// if err != nil {
|
||||
// ctx.Transaction.Rollback()
|
||||
// err = errors.Wrap(err, "cannot updater new document")
|
||||
// return
|
||||
// }
|
||||
|
||||
store.Activity.RecordUserActivity(ctx, activity.UserActivity{
|
||||
LabelID: newDocument.LabelID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue