75d2924de5
scaffolds basic server invite logic
18 lines
422 B
JavaScript
18 lines
422 B
JavaScript
'use strict'
|
|
let debug = require( 'debug' )
|
|
const appRoot = require( 'app-root-path' )
|
|
const { registerOrUpdateScope } = require( `${appRoot}/modules/shared` )
|
|
|
|
exports.init = async ( app, options ) => {
|
|
debug( 'speckle:modules' )( '💌 Init invites module' )
|
|
|
|
const scopes = require( './scopes.js' )
|
|
for ( let scope of scopes ) {
|
|
await registerOrUpdateScope( scope )
|
|
}
|
|
}
|
|
|
|
exports.finalize = async () => {
|
|
|
|
}
|