digitarald / d2g

Distribute 2 Gecko
MIT License
1 stars 3 forks source link

Store signed packages in Mongo intead of the filesystem #34

Open ozten opened 10 years ago

ozten commented 10 years ago

version.js has commented out using Buffer.

That is because we are getting

/home/ozten/d2g/node_modules/mongoose/lib/schema.js:362
    throw new TypeError('Undefined type at `' + path +
          ^
TypeError: Undefined type at `_signedPackage`
  Did you try nesting Schemas? You can only nest using refs or arrays.
    at Function.Schema.interpretAsType (/home/ozten/d2g/node_modules/mongoose/lib/schema.js:362:11)
    at Schema.path (/home/ozten/d2g/node_modules/mongoose/lib/schema.js:305:29)
    at Schema.add (/home/ozten/d2g/node_modules/mongoose/lib/schema.js:217:12)
    at new Schema (/home/ozten/d2g/node_modules/mongoose/lib/schema.js:73:10)
    at Object.<anonymous> (/home/ozten/d2g/models/version.js:3:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)