mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-16 17:00:02 -05:00
added stale
This commit is contained in:
parent
c407266021
commit
c62af86dcb
|
|
@ -36,6 +36,7 @@ export interface UsersForVotingData {
|
|||
score: number
|
||||
month: number
|
||||
year: number
|
||||
stale: boolean
|
||||
}[]
|
||||
}
|
||||
}
|
||||
|
|
@ -75,6 +76,7 @@ export const USERS_FOR_VOTING: DocumentNode = gql`
|
|||
score
|
||||
month
|
||||
year
|
||||
stale
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -539,6 +539,7 @@ const resolvers = {
|
|||
year,
|
||||
plus_server,
|
||||
score: vote.score,
|
||||
stale: false,
|
||||
}))
|
||||
await VotedPerson.insertMany(toInsert)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ const votedPersonSchema = new mongoose.Schema({
|
|||
month: { type: Number, required: true },
|
||||
year: { type: Number, required: true },
|
||||
plus_server: { type: String, required: true },
|
||||
stale: { type: Boolean, default: false },
|
||||
stale: Boolean,
|
||||
})
|
||||
|
||||
votedPersonSchema.virtual("discord_user", {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user