@brimble/models 3.8.197 → 3.8.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/auto-scaling.js
CHANGED
package/dist/project/index.js
CHANGED
|
@@ -389,7 +389,9 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
389
389
|
region: {
|
|
390
390
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
391
391
|
ref: "Region",
|
|
392
|
-
required:
|
|
392
|
+
required: function () {
|
|
393
|
+
return this.serviceType !== enum_1.ServiceType.Static;
|
|
394
|
+
},
|
|
393
395
|
},
|
|
394
396
|
},
|
|
395
397
|
desiredSpecs: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Types, Document } from "mongoose";
|
|
2
2
|
import { IUser } from "./user";
|
|
3
|
-
import {
|
|
3
|
+
import { ICashierSubscription } from "./cashier_subscription";
|
|
4
4
|
import { ITeam } from "./team";
|
|
5
5
|
export interface IAutoScalingGroup extends Document {
|
|
6
6
|
_id: Types.ObjectId;
|
|
@@ -8,7 +8,7 @@ export interface IAutoScalingGroup extends Document {
|
|
|
8
8
|
replicas: number;
|
|
9
9
|
user_id?: IUser;
|
|
10
10
|
team_id?: ITeam;
|
|
11
|
-
subscription_id:
|
|
11
|
+
subscription_id: ICashierSubscription;
|
|
12
12
|
min_containers: number;
|
|
13
13
|
max_containers: number;
|
|
14
14
|
active: boolean;
|