Skip to content

Commit

Permalink
fix: wrong type on sticker rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Frost committed May 19, 2024
1 parent aa010f3 commit 3467851
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docs/s3-api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ curl --location --request POST 'http://api-url/posts' \
--form 'location[longitude]="2.17403"' \
--form 'stickers[0][name]="a"' \
--form 'stickers[0][x]="0.5"' \
--form 'stickers[0][y]="-0.25"' \
--form 'stickers[0][rotation]="15"' \
--form 'stickers[0][y]="0.25"' \
--form 'stickers[0][rotation]="3.14"' \
--form 'stickers[1][name]="b"' \
--form 'stickers[1][x]="0.33"' \
--form 'stickers[1][y]="0"' \
--form 'stickers[1][y]="0.4"' \
--form 'stickers[1][rotation]="0"'
```

Expand Down Expand Up @@ -108,13 +108,13 @@ Example Response
{
"name": "a",
"x": "0.5",
"y": "-0.25",
"rotation": "15"
"y": "0.25",
"rotation": "3.14"
},
{
"name": "b",
"x": "0.33",
"y": "0",
"y": "0.4",
"rotation": "0"
}
],
Expand Down Expand Up @@ -211,13 +211,13 @@ Example Response
{
"name": "a",
"x": "0.5",
"y": "-0.25",
"rotation": "15"
"y": "0.25",
"rotation": "3.14"
},
{
"name": "b",
"x": "0.33",
"y": "0",
"y": "0.4",
"rotation": "0"
}
],
Expand Down
2 changes: 1 addition & 1 deletion src/posts/entities/post-sticker.embeddable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export class PostSticker {
@Property({ columnType: 'float' })
y: number;

@Property()
@Property({ columnType: 'float' })
rotation: number;
}

0 comments on commit 3467851

Please sign in to comment.