Skip to content

Commit

Permalink
fix(server): return magnet
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jul 24, 2024
1 parent a001506 commit ee4e6bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/server/src/query/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ const listResourcesFromDB = memoAsync(
href: resources.href,
type: resources.type,
magnet: resources.magnet,
magnet2: resources.magnet2,
magnetUser: resources.magnetUser,
size: resources.size,
anitomy: resources.anitomy,
createdAt: resources.createdAt,
Expand Down Expand Up @@ -218,6 +220,8 @@ async function transformFromDb(
href,
type: r.type as ResourceType,
magnet: r.magnet,
magnet2: r.magnet2,
magnetUser: r.magnetUser,
size: r.size,
// When reading this field from cache, it will be transfromed to string
createdAt: new Date(r.createdAt!).toISOString(),
Expand Down

0 comments on commit ee4e6bb

Please sign in to comment.