File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/@liexp/backend/src/flows Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export const fromURL =
62
62
location : image ,
63
63
description : defaults ?. title ?? m . description ?? m . url ,
64
64
type : ImageType . types [ 0 ] . value ,
65
+ creator,
65
66
} ) ,
66
67
creator ,
67
68
) ( ctx ) ,
@@ -105,7 +106,7 @@ export const fromURL =
105
106
: null ,
106
107
createdAt : new Date ( ) ,
107
108
updatedAt : new Date ( ) ,
108
- creator : null ,
109
+ creator : creator ,
109
110
provider : null ,
110
111
events : [ ] ,
111
112
keywords : [ ] ,
Original file line number Diff line number Diff line change 1
1
import { fp , pipe } from "@liexp/core/lib/fp/index.js" ;
2
2
import { type URL } from "@liexp/shared/lib/io/http/Common/URL.js" ;
3
3
import { uuid } from "@liexp/shared/lib/io/http/Common/UUID.js" ;
4
+ import { ImageType } from "@liexp/shared/lib/io/http/Media/MediaType.js" ;
4
5
import { type Option } from "fp-ts/lib/Option.js" ;
5
6
import { type ReaderTaskEither } from "fp-ts/lib/ReaderTaskEither.js" ;
6
7
import { type Metadata } from "page-metadata-parser" ;
@@ -32,7 +33,7 @@ export const findOneByLocationOrElse =
32
33
thumbnail : image ,
33
34
location : image ,
34
35
description : image ,
35
- type : "image/jpeg" ,
36
+ type : ImageType . types [ 1 ] . value ,
36
37
createdAt : new Date ( ) ,
37
38
updatedAt : new Date ( ) ,
38
39
creator,
You can’t perform that action at this time.
0 commit comments