From 3467851226433d8361989afc7f95e1ee39eac874 Mon Sep 17 00:00:00 2001 From: Benjamin Frost Date: Sun, 19 May 2024 23:03:58 +0200 Subject: [PATCH] fix: wrong type on sticker rotation --- docs/s3-api-docs.md | 18 +++++++++--------- src/posts/entities/post-sticker.embeddable.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/s3-api-docs.md b/docs/s3-api-docs.md index 8683aab..c5e304b 100644 --- a/docs/s3-api-docs.md +++ b/docs/s3-api-docs.md @@ -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"' ``` @@ -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" } ], @@ -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" } ], diff --git a/src/posts/entities/post-sticker.embeddable.ts b/src/posts/entities/post-sticker.embeddable.ts index 1224b65..4443f40 100644 --- a/src/posts/entities/post-sticker.embeddable.ts +++ b/src/posts/entities/post-sticker.embeddable.ts @@ -11,6 +11,6 @@ export class PostSticker { @Property({ columnType: 'float' }) y: number; - @Property() + @Property({ columnType: 'float' }) rotation: number; }