beanbagdb 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +2 -1
- package/src/system_schema.js +11 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -346,7 +346,8 @@ export class BeanBagDB {
|
|
|
346
346
|
|
|
347
347
|
// add a new log
|
|
348
348
|
let new_log_doc = this._get_blank_doc("system_log")
|
|
349
|
-
new_log_doc.data = {text,
|
|
349
|
+
new_log_doc.data = {text,steps,app:app_data.app_id}
|
|
350
|
+
new_log_doc.meta.title = text
|
|
350
351
|
await this.db_api.insert(new_log_doc);
|
|
351
352
|
console.log("init logged")
|
|
352
353
|
|
package/src/system_schema.js
CHANGED
|
@@ -436,7 +436,7 @@ export const default_app = {
|
|
|
436
436
|
|
|
437
437
|
// this is not stored in the DB. only for validating the metadata during doc update
|
|
438
438
|
export const editable_metadata_schema = {
|
|
439
|
-
additionalProperties:
|
|
439
|
+
additionalProperties: true,
|
|
440
440
|
type: "object",
|
|
441
441
|
properties: {
|
|
442
442
|
tags: {
|
|
@@ -454,6 +454,16 @@ export const editable_metadata_schema = {
|
|
|
454
454
|
title:{
|
|
455
455
|
type:"string",
|
|
456
456
|
maxLength:10000
|
|
457
|
+
},
|
|
458
|
+
ref:{
|
|
459
|
+
type:"object",
|
|
460
|
+
"description":"This can be used by apps to add additional data for later user like version ",
|
|
461
|
+
default:{}
|
|
462
|
+
},
|
|
463
|
+
location:{
|
|
464
|
+
type:"object",
|
|
465
|
+
"description":"this can be used to add created_from and last_updated_from location to the doc",
|
|
466
|
+
default:{}
|
|
457
467
|
}
|
|
458
468
|
},
|
|
459
469
|
};
|