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, secretValueIV,
secretValueTag, secretValueTag,
secretPath, secretPath,
secretReminderCron, secretReminderRepeatDays,
secretReminderNote, secretReminderNote,
tags, tags,
secretCommentCiphertext, secretCommentCiphertext,
@@ -784,7 +784,7 @@ export const updateSecretHelper = async ({
secretCommentTag, secretCommentTag,
secretCommentCiphertext, secretCommentCiphertext,
secretReminderCron, secretReminderRepeatDays,
secretReminderNote, secretReminderNote,
skipMultilineEncoding, skipMultilineEncoding,

View File

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

View File

@@ -30,7 +30,7 @@ export interface ISecret {
// ? NOTE: This works great for workspace-level reminders. // ? 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. // ? 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; secretReminderNote?: string | null;
skipMultilineEncoding?: boolean; skipMultilineEncoding?: boolean;
@@ -125,8 +125,8 @@ const secretSchema = new Schema<ISecret>(
required: false required: false
}, },
secretReminderCron: { secretReminderRepeatDays: {
type: String, type: Number,
required: false, required: false,
default: null default: null
}, },