mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-24 05:47:45 +08:00
Merge branch 'master' of github.com:Deployd/Deployd
This commit is contained in:
@@ -366,6 +366,7 @@ Model = module.exports = emitter.spawn({
|
||||
description: this.description,
|
||||
plugin: this.plugin,
|
||||
collection: this.collection,
|
||||
name: this.name || this.collection,
|
||||
allowed: this.allowed
|
||||
})
|
||||
.notify(function(json) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
var Settings = require('../settings/settings')
|
||||
, Setting = require('../settings/settings')
|
||||
, Setting = require('../settings/setting')
|
||||
, Model = require('../../model')
|
||||
;
|
||||
|
||||
@@ -22,10 +22,16 @@ var refresh = module.exports.refresh = function() {
|
||||
// initial refresh
|
||||
refresh();
|
||||
|
||||
// create or update general graph settings
|
||||
// create or update general models settings
|
||||
Setting
|
||||
.spawn()
|
||||
.set({plugin: 'models', name: 'models'})
|
||||
.unlock()
|
||||
.set({
|
||||
plugin: 'models'
|
||||
})
|
||||
.notify(function(json) {
|
||||
console.log(json);
|
||||
})
|
||||
.save()
|
||||
;
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@ module.exports = Model.spawn({
|
||||
plugin: 'settings',
|
||||
|
||||
description: {
|
||||
name: {type: 'string', unique: true, required: true},
|
||||
plugin: 'string',
|
||||
collection: 'string',
|
||||
description: 'object'
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user