Skip to content

Commit c28b292

Browse files
authored
Merge pull request #131 from thirdweb-dev/01-10-allow_date_functions
Allow toStartOfDay and toDate functions in the API
2 parents 0de561b + 7d82256 commit c28b292

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/common/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ var allowedFunctions = map[string]struct{}{
170170
"length": {},
171171
"toUInt256": {},
172172
"if": {},
173+
"toStartOfDay": {},
174+
"toDate": {},
173175
}
174176

175177
var disallowedPatterns = []string{

0 commit comments

Comments
 (0)