opencode-studio-server 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1231,6 +1231,8 @@ app.get('/api/usage', async (req, res) => {
|
|
|
1231
1231
|
if (range === '24h') min = now - 86400000;
|
|
1232
1232
|
else if (range === '7d') min = now - 604800000;
|
|
1233
1233
|
else if (range === '30d') min = now - 2592000000;
|
|
1234
|
+
else if (range === '3m') min = now - 7776000000;
|
|
1235
|
+
else if (range === '6m') min = now - 15552000000;
|
|
1234
1236
|
else if (range === '1y') min = now - 31536000000;
|
|
1235
1237
|
|
|
1236
1238
|
const sessionDirs = await fs.promises.readdir(md);
|