More typing updates

This commit is contained in:
Daniel Hougaard
2023-11-28 13:50:42 +04:00
parent 70d1cc0e06
commit 64d862ebe9
3 changed files with 7 additions and 7 deletions

View File

@@ -717,7 +717,7 @@ export const updateSecretHelper = async ({
secretValueIV,
secretValueTag,
secretPath,
secretReminderCron,
secretReminderRepeatDays,
secretReminderNote,
tags,
secretCommentCiphertext,
@@ -784,7 +784,7 @@ export const updateSecretHelper = async ({
secretCommentTag,
secretCommentCiphertext,
secretReminderCron,
secretReminderRepeatDays,
secretReminderNote,
skipMultilineEncoding,

View File

@@ -59,8 +59,8 @@ export interface UpdateSecretParams {
secretCommentIV?: string;
secretCommentTag?: string;
secretReminderCron?: string | null;
secretReminderNote?: string | null ;
secretReminderRepeatDays?: number | null;
secretReminderNote?: string | null;
skipMultilineEncoding?: boolean;
tags?: string[];

View File

@@ -30,7 +30,7 @@ export interface ISecret {
// ? NOTE: This works great for workspace-level reminders.
// ? If we want to do it on a user-basis, we should ideally have a seperate model for reminders.
secretReminderCron?: string | null;
secretReminderRepeatDays?: number | null;
secretReminderNote?: string | null;
skipMultilineEncoding?: boolean;
@@ -125,8 +125,8 @@ const secretSchema = new Schema<ISecret>(
required: false
},
secretReminderCron: {
type: String,
secretReminderRepeatDays: {
type: Number,
required: false,
default: null
},