Merge remote-tracking branch 'origin' into service-token-v2

This commit is contained in:
Tuan Dang
2022-12-26 18:50:55 -05:00
80 changed files with 1752 additions and 629 deletions
+5
View File
@@ -10,6 +10,7 @@ import {
export interface ISecret {
_id: Types.ObjectId;
version: number;
workspace: Types.ObjectId;
type: string;
user: Types.ObjectId;
@@ -26,6 +27,10 @@ export interface ISecret {
const secretSchema = new Schema<ISecret>(
{
version: {
type: Number,
required: true
},
workspace: {
type: Schema.Types.ObjectId,
ref: 'Workspace',