Skip to content

Commit 077c5f5

Browse files
committed
Gate to dev environment for now
1 parent 6e527a7 commit 077c5f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/App/Controllers/API/API+PackageController+GetRoute.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ extension API.PackageController.GetRoute {
101101
}
102102

103103
static func customCollections(on database: Database, package: Package) async -> [CustomCollection.Details] {
104+
guard Current.environment() == .development else { return [] }
104105
do {
105106
try await package.$customCollections.load(on: database)
106107
return package.customCollections.map(\.details)

0 commit comments

Comments
 (0)