diff --git a/Sources/MicroPinboard/API/TagsAPIFactory.swift b/Sources/MicroPinboard/API/TagsAPIFactory.swift index a8e1a4c..f486274 100644 --- a/Sources/MicroPinboard/API/TagsAPIFactory.swift +++ b/Sources/MicroPinboard/API/TagsAPIFactory.swift @@ -21,7 +21,7 @@ public enum TagsAPIFactory { path: "/v1/tags/delete", method: .get, queryItems: [ - .init(name: "tag", value: "tag") + .init(name: "tag", value: tag) ] ) } diff --git a/Tests/MicroPinboardTests/PostsAPIFactoryTests.swift b/Tests/MicroPinboardTests/PostsAPIFactoryTests.swift index f716144..8855041 100644 --- a/Tests/MicroPinboardTests/PostsAPIFactoryTests.swift +++ b/Tests/MicroPinboardTests/PostsAPIFactoryTests.swift @@ -391,7 +391,7 @@ class PostsAPIFactoryTests: XCTestCase { XCTAssertTrue( try XCTUnwrap( request.queryItems?.contains( - URLQueryItem(name: "fromdt", value: "0000-01-01") + URLQueryItem(name: "fromdt", value: "0001-01-01") ) ) )