From 19ad827302379a89f5e34b7297f62caf93c1ea1f Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 8 Jan 2023 11:05:44 +0200 Subject: [PATCH] updated migration timestamp --- ...match_migrate.go => 1673167670_multi_match_migrate.go} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename migrations/{1672577344_multi_match_migrate.go => 1673167670_multi_match_migrate.go} (100%) diff --git a/migrations/1672577344_multi_match_migrate.go b/migrations/1673167670_multi_match_migrate.go similarity index 100% rename from migrations/1672577344_multi_match_migrate.go rename to migrations/1673167670_multi_match_migrate.go index 6d230a43..936df7c0 100644 --- a/migrations/1672577344_multi_match_migrate.go +++ b/migrations/1673167670_multi_match_migrate.go @@ -36,6 +36,10 @@ func init() { var isMultiRelLiteral func(mainCollection *models.Collection, literal string) bool isMultiRelLiteral = func(mainCollection *models.Collection, literal string) bool { + if strings.HasPrefix(literal, "@collection.") { + return true + } + if strings.HasPrefix(literal, `"`) || strings.HasPrefix(literal, `'`) || strings.HasPrefix(literal, "@request.method") || @@ -44,10 +48,6 @@ func init() { return false } - if strings.HasPrefix(literal, "@collection.") { - return true - } - parts := strings.Split(literal, ".") if len(parts) <= 1 { return false