add footer
This commit is contained in:
parent
b0270cc98b
commit
bd78b8e4d7
8 changed files with 92 additions and 5 deletions
|
|
@ -24,8 +24,9 @@ Meteor.methods({
|
|||
});
|
||||
|
||||
try {
|
||||
Documents.update(doc._id, { $set: doc });
|
||||
return doc._id; // Return _id so we can redirect to document after update.
|
||||
const documentId = doc._id;
|
||||
Documents.update(documentId, { $set: doc });
|
||||
return documentId; // Return _id so we can redirect to document after update.
|
||||
} catch (exception) {
|
||||
throw new Meteor.Error('500', exception);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue