Skip to content

Commit 37bac46

Browse files
authored
Fix target syntax (#22)
1 parent 1988706 commit 37bac46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/constraints.cds

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using { sap.capire.travels as my } from './schema';
33
@assert.constraint.beginAfterEnd: {
44
condition: (BeginDate <= EndDate),
55
message: 'End Date must be after Begin Date.',
6-
target: (EndDate)
6+
targets: [(EndDate)]
77
}
88
annotate my.Travels with {
99
@mandatory BeginDate;

0 commit comments

Comments
 (0)