File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict'
22
3- const Hoek = require ( 'hoek' )
4- //const BouncerDb = require('@dataparty/bouncer-db')
5- /*
6- require('mongoose-schema-jsonschema')(BouncerDb.mongoose())
7- BouncerDb.mongoose().plugin(require("mongoose-ajv-plugin"))
8- */
93const debug = require ( 'debug' ) ( 'venue.venue_srv' )
104
11- const Dataparty = require ( '../../service' )
125
13- const Utils = Dataparty . ISchema . Utils
6+ const ISchema = require ( '../../index' ) . Bouncer . ISchema
147
8+ const Utils = ISchema . Utils
159
16- class VenueSrv extends Dataparty . ISchema {
10+
11+ class VenueSrv extends ISchema {
1712
1813 static get Type ( ) { return 'venue_srv' }
1914
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ async function main(){
3434 Model : BouncerServerModels . Model ,
3535 Types : {
3636 ...BouncerServerModels . Types ,
37- BanList : require ( './schema/ban_list' ) ,
37+ // BanList: require('./schema/ban_list'),
3838 VenueSrv : require ( './schema/venue_service' )
3939 }
4040 }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class VenueService extends DatapartySrv.IService {
77 constructor ( opts ) {
88 super ( opts )
99
10- this . addSchema ( Path . join ( __dirname , './schema/ban_list.js' ) )
10+ // this.addSchema(Path.join(__dirname, './schema/ban_list.js'))
1111 this . addSchema ( Path . join ( __dirname , './schema/venue_service.js' ) )
1212
1313 this . addMiddleware ( DatapartySrv . middleware_paths . pre . decrypt )
You can’t perform that action at this time.
0 commit comments