secure type with passphrase
This commit is contained in:
parent
597feef9ef
commit
8f49533fcb
9 changed files with 44 additions and 2 deletions
|
@ -2,6 +2,7 @@ export interface CreateCalendarTypeCommand {
|
|||
type: string;
|
||||
nscdr: boolean;
|
||||
color: string;
|
||||
passphrase?: string;
|
||||
}
|
||||
|
||||
export interface UpdateCalendarTypeCommand {
|
||||
|
@ -9,6 +10,7 @@ export interface UpdateCalendarTypeCommand {
|
|||
type: string;
|
||||
nscdr: boolean;
|
||||
color: string;
|
||||
passphrase?: string;
|
||||
}
|
||||
|
||||
export interface DeleteCalendarTypeCommand {
|
||||
|
|
|
@ -18,6 +18,7 @@ export default abstract class CalendarTypeCommandHandler {
|
|||
type: createCalendarType.type,
|
||||
nscdr: createCalendarType.nscdr,
|
||||
color: createCalendarType.color,
|
||||
passphrase: createCalendarType.nscdr ? null : createCalendarType.passphrase,
|
||||
})
|
||||
.execute()
|
||||
.then((result) => {
|
||||
|
@ -41,6 +42,7 @@ export default abstract class CalendarTypeCommandHandler {
|
|||
type: updateCalendarType.type,
|
||||
nscdr: updateCalendarType.nscdr,
|
||||
color: updateCalendarType.color,
|
||||
passphrase: updateCalendarType.nscdr ? null : updateCalendarType.passphrase,
|
||||
})
|
||||
.where("id = :id", { id: updateCalendarType.id })
|
||||
.execute()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue