dobo 1.0.20 → 1.0.21

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.
@@ -2,7 +2,6 @@ import path from 'path'
2
2
 
3
3
  async function copyUploaded (name, id, options = {}) {
4
4
  const { fs } = this.app.bajo.lib
5
- const { omit } = this.app.bajo.lib._
6
5
  const { req, setField, setFile, mimeType, stats, silent = true } = options
7
6
  name = this.attachmentPreCheck(name)
8
7
  if (!name) {
@@ -22,7 +21,6 @@ async function copyUploaded (name, id, options = {}) {
22
21
  field = setField ?? field
23
22
  const file = setFile ?? parts.join('@')
24
23
  const opts = { source: f, field, file, mimeType, stats, req }
25
- console.log(setField, setFile, omit(opts, ['req']))
26
24
  const rec = await this.attachmentCreate(name, id, opts)
27
25
  delete rec.dir
28
26
  result.push(rec)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Database ORM/ODM for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {