Skip to content

Commit 14b6b94

Browse files
committed
Namespace
1 parent d0edd41 commit 14b6b94

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/DataTransferObjects/Query/CustomQuery+CompileDown.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ extension CustomQuery {
242242
// Apply filters according to the basefilters property
243243
switch baseFilters {
244244
case .thisOrganization:
245+
if let namespace, query.dataSource?.name == namespace {
246+
return query
247+
}
248+
245249
guard let organizationAppIDs = organizationAppIDs else { throw QueryGenerationError.keyMissing(reason: "Missing organization app IDs") }
246250
query.filter = try query.filter && appIDFilter(for: organizationAppIDs) && testModeFilter(for: query)
247251
return query

0 commit comments

Comments
 (0)