Skip to content

Commit

Permalink
fix membership
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYBYME committed Sep 14, 2023
1 parent 2bba90a commit 6c736f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions services/mysql.provisions.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
const DbService = require("db-mixin");
const ConfigLoader = require("config-mixin");
const MemeberShipMinxin = require('membership-mixin')
const Membership = require('membership-mixin')
const { MoleculerClientError } = require("moleculer").Errors;
const MYSQLMixin = require('../mixins/mysql.mixins');
const generator = require('generate-password');
Expand All @@ -14,7 +14,9 @@ module.exports = {
version: 1,

mixins: [
DbService({}),
DbService({
permissions: 'mysql.provisions'
}),
ConfigLoader(['mysql.**']),
Membership({
permissions: 'mysql.provisions'
Expand Down Expand Up @@ -106,7 +108,7 @@ module.exports = {
replace: false,

remove: {
rest:false,
rest: false,
needEntity: true,
permissions: ['mysql.provisions.remove']
},
Expand All @@ -122,7 +124,7 @@ module.exports = {
const params = Object.assign({}, ctx.params);

const server = await this.searchAvailableServer(ctx, params);

//create provisioned database and user
const database = await ctx.call('v1.mysql.databases.create', {
server: server.id,
Expand Down

0 comments on commit 6c736f1

Please sign in to comment.