Skip to content

Commit b52beb8

Browse files
authored
chore: enable watchtime tracking
1 parent bc65894 commit b52beb8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gql/resolvers/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mutationType, queryType } from "../schema";
22
import { contentQuery, contentMutation } from "./content";
33
import { whitelistQuery, whitelistMutation } from "./whitelist";
4-
// import watchtime from "./watchtime";
4+
import watchtime from "./watchtime";
55
import getTwitchUser from "./getTwitchUser";
66

77
import me from "./me";
@@ -16,7 +16,7 @@ export const resolvers = {
1616
Query: {
1717
...contentQuery,
1818
...me,
19-
// ...watchtime,
19+
...watchtime,
2020
...getTwitchUser,
2121
...whitelistQuery,
2222
},

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { schema as gql } from "./gql";
1414
import { db, schema } from "./db";
1515
import watchtime from "./watchtime";
1616
// IN TESTING
17-
// setInterval(watchtime, 150000);
18-
// watchtime();
17+
setInterval(watchtime, 150000);
18+
watchtime();
1919
const app = express();
2020

2121
app.use(cookieParser());

0 commit comments

Comments
 (0)