Add getPlayTime endpoint, remove elapsedTime

This commit is contained in:
2024-03-27 00:32:20 -06:00
parent 679150326f
commit 9307fbcbf4
3 changed files with 15 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ type Query {
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
getDeployedConfig: DeployedConfigGQL!
getPlayTime(userId: Int!): UserPlayTimeGQL!
getVideo(videoId: Int!): VideoGQL!
getShots(filterInput: FilterInput = null): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
@@ -127,7 +128,6 @@ type UserGQL {
profileImageUri: String
createdAt: DateTime
updatedAt: DateTime
elapsedTime: Float!
}
"""
@@ -139,6 +139,10 @@ type DeployedConfigGQL {
allowNewUsers: Boolean!
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoGQL {
id: Int!
owner: UserGQL