remove point from food
This commit is contained in:
@@ -60,12 +60,6 @@ export class CreateFoodDto {
|
||||
@ApiPropertyOptional({ example: 120000 })
|
||||
price?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Type(() => Number)
|
||||
@ApiPropertyOptional({ example: 10 })
|
||||
points?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Type(() => Number)
|
||||
|
||||
@@ -30,9 +30,6 @@ export class Food extends BaseEntity {
|
||||
@Property({ type: 'decimal', precision: 10, scale: 2, nullable: true })
|
||||
price?: number;
|
||||
|
||||
@Property({ type: 'int', nullable: true })
|
||||
points?: number;
|
||||
|
||||
@Property({ type: 'int', nullable: true })
|
||||
order?: number;
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ export class FoodService {
|
||||
content: rest.content,
|
||||
// numeric/array fields
|
||||
price: rest.price ?? 0,
|
||||
points: rest.points ?? 0,
|
||||
prepareTime: rest.prepareTime ?? 0,
|
||||
images: rest.images ?? undefined,
|
||||
restaurant: restaurant,
|
||||
|
||||
@@ -275,7 +275,8 @@
|
||||
<h2>Connection</h2>
|
||||
<div class="form-group">
|
||||
<label for="serverUrl">Server URL:</label>
|
||||
<input type="text" id="serverUrl" value="http://localhost:4000" placeholder="http://localhost:4000" />
|
||||
<input type="text" id="serverUrl" value="https://dmenuplus-api.dev.danakcorp.com"
|
||||
placeholder="https://dmenuplus-api.dev.danakcorp.com" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="authToken">Admin Token:</label>
|
||||
|
||||
Reference in New Issue
Block a user