mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
fix: org avatar not show
This commit is contained in:
parent
791289dcf5
commit
ad1ebd9bbc
@ -118,6 +118,7 @@ export type BatchAddTemplatesToCollectionRequest = {
|
|||||||
|
|
||||||
// Creator types
|
// Creator types
|
||||||
export type Creator = {
|
export type Creator = {
|
||||||
|
id?: string
|
||||||
email: string
|
email: string
|
||||||
name: string
|
name: string
|
||||||
display_name: string
|
display_name: string
|
||||||
|
|||||||
@ -70,6 +70,10 @@ export const getCreatorAvatarUrl = (uniqueHandle: string) => {
|
|||||||
return `${MARKETPLACE_API_PREFIX}/creators/${uniqueHandle}/avatar`
|
return `${MARKETPLACE_API_PREFIX}/creators/${uniqueHandle}/avatar`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getOrganizationAvatarUrl = (id: string) => {
|
||||||
|
return `${MARKETPLACE_API_PREFIX}/organizations/${id}/avatar`
|
||||||
|
}
|
||||||
|
|
||||||
export const getFormattedPlugin = (bundle: Plugin): Plugin => {
|
export const getFormattedPlugin = (bundle: Plugin): Plugin => {
|
||||||
if (bundle.type === 'bundle') {
|
if (bundle.type === 'bundle') {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user