Skip to content

Commit

Permalink
refactor: remove type restrictions to startingPositionTimestamp to le…
Browse files Browse the repository at this point in the history
…ave them to Cloudformation
  • Loading branch information
Daniele Iasella committed Oct 27, 2022
1 parent efeabf5 commit 315796e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plugins/aws/package/compile/events/kafka.js
Expand Up @@ -88,7 +88,6 @@ class AwsCompileKafkaEvents {
},
startingPositionTimestamp: {
type: 'number',
minimum: 0,
},
topic: {
type: 'string',
Expand Down Expand Up @@ -157,7 +156,7 @@ class AwsCompileKafkaEvents {

if (startingPosition === 'AT_TIMESTAMP' && !startingPositionTimestamp) {
throw new ServerlessError(
`You must specify startingPositionTimestamp for function: ${functionName} when startingPosition is AT_TIMESTAMP`,
`You must specify startingPositionTimestamp for function: ${functionName} when startingPosition is AT_TIMESTAMP.`,
'FUNCTION_KAFKA_STARTING_POSITION_TIMESTAMP_INVALID'
);
}
Expand Down

0 comments on commit 315796e

Please sign in to comment.