Skip to content

Commit

Permalink
updated:node 20 LTS (#1570)
Browse files Browse the repository at this point in the history
* updated node version

* deleted video file

* fix falling test
  • Loading branch information
AVtheking authored Dec 27, 2023
1 parent 9615a43 commit 2128f11
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
needs: [Code-Quality-Checks]
strategy:
matrix:
node-version: [14.x]
node-version: [20.x]
services:
mongo:
image: mongo:4.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
environment: TALAWA_ENVIRONMENT
strategy:
matrix:
node-version: [14.x]
node-version: [20.x]
services:
mongo:
image: mongo:4.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
node-version: [20.x]
services:
redis:
image: redis:6.0
Expand Down
2 changes: 1 addition & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ You will need to have copies of your code on your local system. Here's how to do

## Install node.js

Best way to install and manage `node.js` is making use of node version managers. Two most popular node version managers right now are [fnm](https://github.com/Schniz/fnm) and [nvm](https://github.com/nvm-sh/nvm). We'd recommend `fnm` because it's written in `rust` and is much faster than `nvm`. Install whichever one you want and follow their guide to set up `node.js` on your system.
Best way to install and manage `node.js` is making use of node version managers. Two most popular node version managers right now are [fnm](https://github.com/Schniz/fnm) and [nvm](https://github.com/nvm-sh/nvm). We'd recommend `fnm` because it's written in `rust` and is much faster than `nvm`. Install whichever one you want and follow their guide to set up `node.js` on your system ensure the installation of Node.js version 20 LTS.

## Install npm

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ services:
- 27017:27017
volumes:
- mongodb-data:/data/db

redis-stack-server:
image: redis/redis-stack-server:latest
ports:
- 6379:6379
volumes:
- redis-data:/data/redis
- redis-data:/data/redis

talawa-api-container:
build: .
Expand All @@ -27,4 +27,4 @@ services:

volumes:
mongodb-data:
redis-data:
redis-data:
13 changes: 13 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@graphql-tools/schema": "^10.0.0",
"@graphql-tools/utils": "^10.0.11",
"@types/graphql-upload": "^16.0.5",
"@types/jwt-decode": "^3.1.0",
"@types/yargs": "^17.0.32",
"axios": "^1.6.0",
"bcryptjs": "^2.4.3",
Expand Down Expand Up @@ -135,5 +136,8 @@
"graphql-voyager": {
"graphql": "^16.6.0"
}
},
"engines": {
"node": ">=20.x"
}
}
4 changes: 2 additions & 2 deletions src/resolvers/Mutation/forgotPassword.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import bcrypt from "bcryptjs";
import { jwtDecode } from "jwt-decode";
import type { MutationResolvers } from "../../types/generatedGraphQLTypes";
import { User } from "../../models";
import { INVALID_OTP } from "../../constants";
import { User } from "../../models";
import type { MutationResolvers } from "../../types/generatedGraphQLTypes";
/**
* This function enables a user to restore password.
* @param _parent - parent of current request
Expand Down

0 comments on commit 2128f11

Please sign in to comment.