Skip to content

Commit 84d652d

Browse files
committed
rm accounting creation from workspace creation
1 parent a0631e8 commit 84d652d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/resolvers/workspace.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@ module.exports = {
5151
async createWorkspace(_obj, { name, description, image }, { user, factories, accounting }) {
5252
try {
5353
// Create workspace account and set account id to workspace
54-
const accountResponse = await accounting.createAccount({
55-
name: 'WORKSPACE:' + name,
56-
type: AccountType.LIABILITY,
57-
currency: Currency.RUB,
58-
});
59-
60-
const accountId = accountResponse.recordId;
54+
// const accountResponse = await accounting.createAccount({
55+
// name: 'WORKSPACE:' + name,
56+
// type: AccountType.LIABILITY,
57+
// currency: Currency.RUB,
58+
// });
59+
60+
// const accountId = accountResponse.recordId;
61+
const accountId = null;
6162

6263
/**
6364
* @type {WorkspaceDBScheme}

0 commit comments

Comments
 (0)