Files
speckle-server/packages/server/modules/workspaces/errors/regions.ts
T
Chuck Driesler c382064585 feat(regions): move project branches and commits (#3843)
* feat(regions): repo functions for copying project branches and commits

* chore(regions): wire up move to resolver

* chore(regions): successful basic test of project region change

* fix(regions): sabrina carpenter please please please

* fix(regions): repair multiregion test setup

* chore(regions): appease ts

* chore(multiregion): update test multiregion config

* chore(multiregion): fix test docker config and test

* chore(multiregion): use transaction

* chore(multiregion): maybe this will work

* fix(multiregion): drop subs synchronously

* chore(multiregion): desperate test logs

* chore(multiregion): somehow that worked?

* chore(multiregion): add load-bearing log statement

* chore(multiregion): move services

* fix(multiregion): test drop waits

* chore(regions): fix import

* chore(regions): make test a bit more thorough for good measure

* fix(regions): speed up inserts

* fix(regions): ignore workspace conflict on move
2025-02-13 14:39:23 +00:00

14 lines
466 B
TypeScript

import { BaseError } from '@/modules/shared/errors'
export class WorkspaceRegionAssignmentError extends BaseError {
static defaultMessage = 'Failed to assign region to workspace'
static code = 'WORKSPACE_REGION_ASSIGNMENT_ERROR'
static statusCode = 400
}
export class ProjectRegionAssignmentError extends BaseError {
static defaultMessage = 'Failed to assign region to project'
static code = 'PROJECT_REGION_ASSIGNMENT_ERROR'
static statusCode = 400
}