Skip to content

Commit

Permalink
fix: set backend formId type to be from IFormSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Jul 27, 2021
1 parent d3393d3 commit d177abc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/types/form_feedback.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { Document, Model, QueryCursor } from 'mongoose'
import { Merge } from 'type-fest'

import { FormFeedbackBase } from '../../shared/types/form/form_feedback'

import { IFormSchema } from './form'

export { ProcessedFeedbackMeta } from '../../shared/types/form/form_feedback'

export type IFormFeedback = FormFeedbackBase
export type IFormFeedback = Merge<
FormFeedbackBase,
{ formId: IFormSchema['_id'] }
>
export interface IFormFeedbackSchema extends IFormFeedback, Document {
created?: Date
lastModified?: Date
Expand Down

0 comments on commit d177abc

Please sign in to comment.