Skip to content

Commit 098faf3

Browse files
authored
feat: return turbo expiration field to deduce turbo status (#999)
1 parent a251f2e commit 098faf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/graphql/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ export function formatSpace({
143143
space.verified = verified ?? null;
144144
space.flagged = flagged ?? null;
145145
space.hibernated = hibernated ?? null;
146-
space.turbo = turbo ?? null;
146+
space.turbo =
147+
new Date((turboExpiration || 0) * 1000) > new Date() ? true : turbo ?? null;
147148
space.turboExpiration = turboExpiration ?? 0;
148149
space.rank = spaceMetadata?.rank ?? null;
149150

0 commit comments

Comments
 (0)