Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
v1.0.0-beta.7
Browse files Browse the repository at this point in the history
v1.0.0-beta.7
  • Loading branch information
JensAstrup authored Mar 28, 2024
2 parents dda9e2d + 4b77368 commit 1c42af7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run tests

on:
push:
branches: [ main ]
branches: [ develop ]
pull_request:
types: [ opened, synchronize, reopened ]

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Shortcut API Client
[![npm version](https://badge.fury.io/js/shortcut-api.svg)](https://badge.fury.io/js/shortcut-api)
[![codecov](https://codecov.io/gh/JensAstrup/shortcut/graph/badge.svg?token=CteCCD1D6w)](https://codecov.io/gh/JensAstrup/shortcut)
[![Documentation Coverage](https://raw.githubusercontent.com/JensAstrup/shortcut/develop/docs/coverage.svg)](https://jensastrup.github.io/shortcut/)


Expand Down
9 changes: 0 additions & 9 deletions src/stories/stories-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ export default class StoriesService extends BaseService<Story> {
super(init)
}

public async create(story: CreateStoryData): Promise<Story> {
const response = await axios.post(this.baseUrl, story, {headers: this.headers})
if (response.status >= 400) {
throw new Error('HTTP error ' + response.status)
}
const storyData = convertApiFields(response.data) as StoryInterface
return new Story(storyData)
}

public async search(query: string): Promise<Story[]> {
if (query.constructor === Object) {
const queryEntries = Object.entries(query)
Expand Down

0 comments on commit 1c42af7

Please sign in to comment.