fixed userpreference test and added user info to recipe endpoint

This commit is contained in:
vabene1111
2024-12-19 20:08:13 +01:00
parent b9e5126ab4
commit ecdb1e9fee
10 changed files with 1855 additions and 31 deletions

View File

@@ -105,10 +105,10 @@ export interface Recipe {
waitingTime?: number;
/**
*
* @type {number}
* @type {User}
* @memberof Recipe
*/
readonly createdBy: number;
readonly createdBy: User;
/**
*
* @type {Date}
@@ -235,7 +235,7 @@ export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re
'steps': ((json['steps'] as Array<any>).map(StepFromJSON)),
'workingTime': json['working_time'] == null ? undefined : json['working_time'],
'waitingTime': json['waiting_time'] == null ? undefined : json['waiting_time'],
'createdBy': json['created_by'],
'createdBy': UserFromJSON(json['created_by']),
'createdAt': (new Date(json['created_at'])),
'updatedAt': (new Date(json['updated_at'])),
'sourceUrl': json['source_url'] == null ? undefined : json['source_url'],