feat(api): test doc upload
This commit is contained in:
@@ -34,10 +34,11 @@ func (f *DocFolder) ParentID() string {
|
||||
return parts[len(parts)-1]
|
||||
}
|
||||
|
||||
func (df *DocFolder) ToSchema() *schema.DocFolder {
|
||||
func (df DocFolder) ToSchema() *schema.DocFolder {
|
||||
return &schema.DocFolder{
|
||||
ID: df.ID,
|
||||
Name: df.Name,
|
||||
IsDefault: df.IsDefault,
|
||||
CreatedAt: df.CreatedAt,
|
||||
UpdatedAt: df.UpdatedAt,
|
||||
}
|
||||
@@ -89,7 +90,7 @@ func (d *Doc) ToSchema(ctx context.Context) *schema.Doc {
|
||||
return &schema.Doc{
|
||||
ID: d.ID,
|
||||
Folder: d.Folder.ToSchema(),
|
||||
PresignedURL: url,
|
||||
PresignedURL: url.String(),
|
||||
UploadedAt: d.UploadedAt,
|
||||
CreatedAt: d.CreatedAt,
|
||||
UpdatedAt: d.UpdatedAt,
|
||||
|
||||
Reference in New Issue
Block a user