Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dotfiles
Submodule .dotfiles updated 2 files
+1 −0 .swiftformat-base
+1 −1 config.sh
6 changes: 3 additions & 3 deletions Backend/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Backend/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public let package = Package(
.package(url: "https://github.com/nmdias/FeedKit.git", from: "10.0.0-rc.3"),
.package(url: "https://github.com/GetAutomaApp/swift-retry.git", branch: "main"),
.package(url: "https://github.com/GetAutomaApp/Fakery", branch: "master"),
.package(name: "automa-utilities", path: "../../AutomaUtilities"),
],
targets: [
.executableTarget(
Expand All @@ -53,6 +54,7 @@ public let package = Package(
.product(name: "SotoTextract", package: "soto"),
.product(name: "FeedKit", package: "FeedKit"),
.product(name: "DMRetry", package: "swift-retry"),
.product(name: "automa-utilities", package: "AutomaUtilities"),
],
exclude: [
"Documentation.md",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import OpenAI
import Retry
import Vapor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import DataTypes
import Vapor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import DataTypes
import Fluent
import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import Fluent
import Prometheus
import Vapor
Expand Down
18 changes: 0 additions & 18 deletions Backend/Sources/App/Extensions/Vapor/EnvironmentExtensions.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import DataTypes
import Vapor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/// All source code and related assets are the property of GetAutomaApp.
/// All rights reserved.

import AutomaUtilities
import DataTypes
import Fluent
import JWT
Expand Down Expand Up @@ -128,9 +129,9 @@ internal actor AuthenticationServiceHelper {
internal struct AuthenticationServiceHelperConfig: AuthenticationServiceConfig {
/// Db Connection w/ Write access
public let writeDb: Database
/// Db Connection w/ Read-Only access
/// Db Connection w/ Read-Only access
public let readDb: Database
/// Logger
/// Logger
public let logger: Logger
}

Expand Down Expand Up @@ -406,7 +407,7 @@ internal struct DeleteOldAccessTokensPayload {
/// ASC on date how many tokens to skip
public let totalNewestTokensToSkip: Int?

/// init
/// init
public init(
userId: UUID,
subject: JWTTokenSubject,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import DataTypes
import Fluent
import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import DataTypes
import Fluent
import OpenAI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import DataTypes
import Fluent
import SotoS3
Expand Down
9 changes: 5 additions & 4 deletions Backend/Sources/App/configure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// All source code and related assets are the property of GetAutomaApp.
// All rights reserved.

import AutomaUtilities
import Fluent
import FluentPostgresDriver
import JWT
Expand Down Expand Up @@ -202,8 +203,8 @@ public struct DatabaseSeeder {
}

internal enum DatabaseURLs {
/// primary database url has read & write access
public static let primary: Result<String, Error> = Result { try Environment.getOrThrow("PRIMARY_POSTGRES_URL") }
/// regional url most likely doesn't have write access, but allows for extremely fast reads
public static let regional: Result<String, Error> = Result { try Environment.getOrThrow("REGIONAL_POSTGRES_URL") }
/// primary database url has read & write access
public static let primary: Result<String, Error> = Result { try Environment.getOrThrow("PRIMARY_POSTGRES_URL") }
/// regional url most likely doesn't have write access, but allows for extremely fast reads
public static let regional: Result<String, Error> = Result { try Environment.getOrThrow("REGIONAL_POSTGRES_URL") }
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// All rights reserved.

@testable import App
import AutomaUtilities
import Fakery
import Fluent
import Testing
Expand All @@ -13,7 +14,7 @@ import VaporTesting
/// These tests verify that operations requiring user authentication work correctly
extension SerialDbTestSuites {
@Suite("TwitterAuthenticatedClientIntegrationTests")
internal struct TwitterAuthenticatedClientIntegrationTests: TwitterClientTestSuite {
struct TwitterAuthenticatedClientIntegrationTests: TwitterClientTestSuite {
/// Tests the ability to post a tweet using an authenticated Twitter client
/// This test verifies that:
/// - A valid Twitter user token can be retrieved from the database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// All rights reserved.

@testable import App
import AutomaUtilities
import Testing
import VaporTesting

Expand Down
Loading