Skip to content

Commit

Permalink
Added function slug
Browse files Browse the repository at this point in the history
  • Loading branch information
FloomAI committed Oct 14, 2024
1 parent 162195d commit 30c6103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Floom.Core/Functions/FunctionDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class FeaturedFunctionDto
{
public string id { get; set; }
public string name { get; set; }
public string slug { get; set; }
public string description { get; set; }
public string runtimeLanguage { get; set; }
public string runtimeFramework { get; set; }
Expand Down
1 change: 1 addition & 0 deletions Floom.Core/Functions/FunctionEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
public class FunctionEntity: DatabaseEntity
{
public string name { get; set; }
public string slug { get; set; }
public string runtimeLanguage { get; set; }
public string runtimeFramework { get; set; }
public string promptUrl { get; set; }
Expand Down
1 change: 1 addition & 0 deletions Floom.Core/Functions/FunctionsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ public async Task<List<FeaturedFunctionDto>> ListPublicFeaturedFunctionsAsync()
{
id = functionId,
name = function.name ?? string.Empty, // Set to empty string if null
slug = function.slug ?? string.Empty, // Set to empty string if null
description = function.description ?? string.Empty, // Set to empty string if null
runtimeLanguage = function.runtimeLanguage ?? string.Empty, // Set to empty string if null
runtimeFramework = function.runtimeFramework ?? string.Empty, // Set to empty string if null
Expand Down

0 comments on commit 30c6103

Please sign in to comment.