You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((importFlags.contains(ImportFlags.webhooks) || opts.isWhkRegenAuthTokens()) && getRdTool().getClient().getApiVersion() < 34) {
146
195
thrownewInputError(String.format("Cannot use --include-webhooks or --regenerate-tokens with API < 34 (currently: %s)", getRdTool().getClient().getApiVersion()));
147
196
}
148
-
if ((opts.isIncludeWebhooks() ||opts.isWhkRegenUuid()) && getRdTool().getClient().getApiVersion() < 47) {
149
-
thrownewInputError(String.format("Cannot use --include-webhooks or --remove-webhooks-uuids with API < 47 (currently: %s)", getRdTool().getClient().getApiVersion()));
197
+
if ((importFlags.contains(ImportFlags.webhooks) &&opts.isWhkRegenUuid()) && getRdTool().getClient().getApiVersion() < 47) {
198
+
thrownewInputError(String.format("Cannot use --include-webhooks with --remove-webhooks-uuids with API < 47 (currently: %s)", getRdTool().getClient().getApiVersion()));
150
199
}
151
-
if ((opts.isIncludeNodeSources()) && getRdTool().getClient().getApiVersion() < 38) {
200
+
if ((importFlags.contains(ImportFlags.nodeSources)) && getRdTool().getClient().getApiVersion() < 38) {
152
201
thrownewInputError(String.format("Cannot use --include-node-sources with API < 38 (currently: %s)", getRdTool().getClient().getApiVersion()));
0 commit comments