enzostvs HF staff commited on
Commit
929204e
·
1 Parent(s): a9314c8

use hf createdAt

Browse files
src/routes/api/models/+server.ts CHANGED
@@ -80,6 +80,7 @@ export async function PATCH({ request } : RequestEvent) {
80
  likes: model.likes,
81
  downloads: model.downloads,
82
  likes7d: model.likes7d,
 
83
  }
84
  })
85
  .then(() => {
 
80
  likes: model.likes,
81
  downloads: model.downloads,
82
  likes7d: model.likes7d,
83
+ createdAt: model.createdAt,
84
  }
85
  })
86
  .then(() => {
src/routes/api/scrap-models/+server.ts CHANGED
@@ -57,6 +57,7 @@ export async function POST({ request }) {
57
  image: model.image,
58
  likes: model.likes,
59
  downloads: model.downloads,
 
60
  isPublic: false,
61
  }
62
  }).catch(() => {})
 
57
  image: model.image,
58
  likes: model.likes,
59
  downloads: model.downloads,
60
+ createdAt: model.createdAt,
61
  isPublic: false,
62
  }
63
  }).catch(() => {})