populate fields on task creation
This commit is contained in:
@@ -28,6 +28,10 @@ const userSchema = new mongoose.Schema({
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
defaultClient: {
|
||||
type: mongoose.Types.ObjectId,
|
||||
ref: "organization",
|
||||
},
|
||||
passKeys: [new mongoose.Schema({}, { _id: false, strict: false })],
|
||||
challenge: new mongoose.Schema(
|
||||
{
|
||||
@@ -92,6 +96,7 @@ const updateUserInput = z.object({
|
||||
.optional(),
|
||||
avatar: z.string().url().optional(),
|
||||
role: z.enum(roles).optional(),
|
||||
defaultClient: z.string().optional(),
|
||||
});
|
||||
|
||||
const userResponse = z.object({
|
||||
|
||||
Reference in New Issue
Block a user