Skip to content

Commit

Permalink
Published freedombase:[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Jan 13, 2022
1 parent de0028d commit 072204e
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 29 deletions.
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# CHANGELOG

## v1.7.1 - 2022-01-13

### Changes

- Updated `@types/meteor` to v2.0.2

### Fixes

- Ensure that when calling `freedombase:legal.agreements.agreeBy` that user agrees to the current legal document

## v1.7.0 - 2021-12-11

### Fixes
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
/* global Package */
Package.describe({
name: 'freedombase:legal-management',
version: '1.7.0',
version: '1.7.1',
summary: 'Manage your legal documents and user consent.',
git: 'https://github.com/freedombase/meteor-legal-management',
documentation: 'README.md'
})

Package.onUse(function (api) {
api.versionsFrom('2.3')
api.use(['meteor', 'ecmascript', 'check', 'mongo', 'typescript', 'callback-hook'])
api.use(['aldeed:[email protected]', 'aldeed:[email protected]', 'aldeed:[email protected]'])
api.use([
'meteor',
'ecmascript',
'check',
'mongo',
'typescript',
'callback-hook'
])
api.use([
'aldeed:[email protected]',
'aldeed:[email protected]',
'aldeed:[email protected]'
])
// 'socialize:[email protected]'

api.mainModule('common.ts', 'client')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"parser": "babel-eslint"
},
"devDependencies": {
"@types/meteor": "^1.4.84",
"@types/meteor": "^2.0.2",
"@types/simpl-schema": "^1.12.0",
"all-contributors-cli": "^6.20.0",
"babel-eslint": "^10.1.0",
Expand Down
4 changes: 2 additions & 2 deletions server/agreement-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ Meteor.methods({
const result = legalDocs.map(legalDoc => {
// Get the legal document
const doc:LegalDocument = LegalCollection.findOne(
{ $or: [{ _id: legalDoc }, { documentAbbr: legalDoc }] },
{ fields: { _id: 1, documentAbbr: 1 } }
{ $or: [{ _id: legalDoc }, { documentAbbr: legalDoc }], effectiveAt: { $lte: new Date() } },
{ fields: { _id: 1, documentAbbr: 1 }, sort: { effectiveAt: -1 } }
)
// Throw error when legal document is not found
if (!doc) throw new Meteor.Error(`Legal document ${legalDoc} not found.`)
Expand Down

0 comments on commit 072204e

Please sign in to comment.