Skip to content

Commit

Permalink
fix: remove timestamp restriction on registerFeedback
Browse files Browse the repository at this point in the history
  • Loading branch information
figueredo committed Jul 18, 2024
1 parent d51499e commit ee797ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/incogniaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export class IncogniaApi {
bodyParams: RegisterFeedbackBodyProps,
queryParams?: RegisterFeedbackParamsProps
): Promise<void> {
const { event, timestamp } = bodyParams || {}
if (!event || !timestamp) {
throw new IncogniaError('No event or timestamp provided')
const { event } = bodyParams || {}
if (!event) {
throw new IncogniaError('No event provided')
}

const params = queryParams && convertObjectToSnakeCase(queryParams)
Expand Down

0 comments on commit ee797ee

Please sign in to comment.