feat: allow additional data to be attached to the stripped content

This commit is contained in:
thecodrr
2021-09-15 12:01:10 +05:00
parent c77bdcd3ce
commit e4e145ec4d

View File

@@ -1,6 +1,10 @@
export default class Debug {
strip(item) {
return JSON.stringify({
title: !!item.title,
description: !!item.description,
headline: !!item.headline,
colored: !!item.color,
type: item.type,
notebooks: item.notebooks,
tags: item.tags,
@@ -9,6 +13,7 @@ export default class Debug {
dateEdited: item.dateEdited,
dateDeleted: item.dateDeleted,
dateCreated: item.dateCreated,
additionalData: item.additionalData,
});
}
}