We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b997af commit 5940a85Copy full SHA for 5940a85
apps/api/src/core/democracy/law/law.service.ts
@@ -7,7 +7,8 @@ import { omit } from 'radash'
7
8
@Injectable()
9
export class LawService {
10
- public constructor(@InjectModel(Law.name) public _model: Model<Partial<Law>>) {
+ public constructor(@InjectModel(Law.name) public _model: Model<Partial<Law & { voted: boolean }>>) {
11
+ this._model = _model
12
}
13
14
public async getLaws(playerName: string = ''): Promise<Law[]> {
apps/web/src/pages/democracy/vote.vue
@@ -165,7 +165,7 @@ export default {
165
const appliedAtTs = new Date(law.appliedAt).getTime()
166
const currentTs = new Date().getTime()
167
168
- return appliedAtTs < currentTs
+ return appliedAtTs > currentTs
169
})
170
171
},
0 commit comments