diff --git a/.github/swift.yml b/.github/swift.yml deleted file mode 100644 index d863861..0000000 --- a/.github/swift.yml +++ /dev/null @@ -1,45 +0,0 @@ -# This workflow will build a Swift project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift - -name: Swift - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: ubuntu-latest - - services: - postgres: - image: postgres:latest - env: - POSTGRES_DB: vapor_database - POSTGRES_PASSWORD: vapor_password - POSTGRES_USER: vapor_username - ports: - - 5433:5432 - # Set health checks to wait until postgres has started - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - - steps: - - uses: actions/checkout@v3 - - name: Build - run: swift build -v - - name: Run tests - env: - TEST_FIREBASE_WEB_API_KEY: ${{ secrets.TEST_FIREBASE_WEB_API_KEY }} - TEST_FIREBASE_USER_EMAIL: ${{ secrets.TEST_FIREBASE_USER_EMAIL }} - TEST_FIREBASE_USER_PASSWORD: ${{ secrets.TEST_FIREBASE_USER_PASSWORD }} - TEST_FIREBASE_USER_2_EMAIL: ${{ secrets.TEST_FIREBASE_USER_2_EMAIL }} - TEST_FIREBASE_USER_2_PASSWORD: ${{ secrets.TEST_FIREBASE_USER_2_PASSWORD }} - FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }} - run: swift test -v diff --git a/Sources/App/Models/Organization.swift b/Sources/App/Models/Organization.swift index 7d641ca..49af7e1 100644 --- a/Sources/App/Models/Organization.swift +++ b/Sources/App/Models/Organization.swift @@ -19,9 +19,6 @@ final class Organization: Model, Content { @OptionalField(key: "api_key") var apiKey: String? - @Children(for: \.$organization) - var unsubscribedLeads: [UnsubscribedLeads] - @Siblings(through: ProfileOrganizationRole.self, from: \.$organization, to: \.$profile) public var profiles: [Profile]