mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2025-01-03 08:33:48 +01:00
add author and class data to file
This commit is contained in:
parent
5080402c85
commit
25727472c6
@ -6,10 +6,12 @@ export default async function docToFile(db, doc, { image = false, sketch = false
|
||||
// NOTE doc.appVersion can be used to check in which version of the app the file was saved in
|
||||
const response = {
|
||||
name: doc.name,
|
||||
author: doc.author,
|
||||
id: doc._id,
|
||||
createdOn: doc.createdOn,
|
||||
updatedOn: doc.updatedOn
|
||||
};
|
||||
if (doc.class) response.class;
|
||||
|
||||
const { appVersion } = doc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user