|
1 | 1 | import { ReceiveTypes } from '@hawk.so/types'; |
2 | 2 | import * as telegram from '../utils/telegram'; |
3 | | -import { DEMO_WORKSPACE_ID } from '../constants/demoWorkspace'; |
4 | 3 | const mongo = require('../mongo'); |
5 | 4 | const { ObjectId } = require('mongodb'); |
6 | 5 | const { ApolloError, UserInputError } = require('apollo-server-express'); |
@@ -254,7 +253,7 @@ module.exports = { |
254 | 253 | throw new ApolloError('There is no project with that id'); |
255 | 254 | } |
256 | 255 |
|
257 | | - if (project.workspaceId.toString() === DEMO_WORKSPACE_ID) { |
| 256 | + if (project.workspaceId.toString() === '6213b6a01e6281087467cc7a') { |
258 | 257 | throw new ApolloError('Unable to update demo project'); |
259 | 258 | } |
260 | 259 |
|
@@ -292,7 +291,7 @@ module.exports = { |
292 | 291 | throw new ApolloError('There is no project with that id'); |
293 | 292 | } |
294 | 293 |
|
295 | | - if (project.workspaceId.toString() === DEMO_WORKSPACE_ID) { |
| 294 | + if (project.workspaceId.toString() === '6213b6a01e6281087467cc7a') { |
296 | 295 | throw new ApolloError('Unable to update demo project'); |
297 | 296 | } |
298 | 297 |
|
@@ -400,7 +399,7 @@ module.exports = { |
400 | 399 | throw new ApolloError('There is no project with that id'); |
401 | 400 | } |
402 | 401 |
|
403 | | - if (project.workspaceId.toString() === DEMO_WORKSPACE_ID) { |
| 402 | + if (project.workspaceId.toString() === '6213b6a01e6281087467cc7a') { |
404 | 403 | throw new ApolloError('Unable to remove demo project'); |
405 | 404 | } |
406 | 405 |
|
@@ -459,7 +458,7 @@ module.exports = { |
459 | 458 | throw new ApolloError('There is no project with that id'); |
460 | 459 | } |
461 | 460 |
|
462 | | - if (project.workspaceId.toString() === DEMO_WORKSPACE_ID) { |
| 461 | + if (project.workspaceId.toString() === '6213b6a01e6281087467cc7a') { |
463 | 462 | throw new ApolloError('Unable to update demo project'); |
464 | 463 | } |
465 | 464 |
|
@@ -510,7 +509,7 @@ module.exports = { |
510 | 509 | throw new ApolloError('There is no project with that id'); |
511 | 510 | } |
512 | 511 |
|
513 | | - if (project.workspaceId.toString() === DEMO_WORKSPACE_ID) { |
| 512 | + if (project.workspaceId.toString() === '6213b6a01e6281087467cc7a') { |
514 | 513 | throw new ApolloError('Unable to update demo project'); |
515 | 514 | } |
516 | 515 |
|
|
0 commit comments