Skip to content

Commit

Permalink
feat(api): add default value for theme parameter (vn7n24fzkq#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustubhgupta authored Jul 29, 2021
1 parent a8a74c7 commit 40850ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/cards/most-commit-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { changToNextGitHubToken } = require('../utils/github-token-updater');
const { getErrorMsgCard } = require('../utils/error-card');

module.exports = async (req, res) => {
const { username, theme } = req.query;
const { username, theme="default" } = req.query;
try {
let tokenIndex = 0;
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion api/cards/productive-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { changToNextGitHubToken } = require('../utils/github-token-updater');
const { getErrorMsgCard } = require('../utils/error-card');

module.exports = async (req, res) => {
const { username, theme } = req.query;
const { username, theme="default" } = req.query;
try {
let tokenIndex = 0;
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion api/cards/profile-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { changToNextGitHubToken } = require('../utils/github-token-updater');
const { getErrorMsgCard } = require('../utils/error-card');

module.exports = async (req, res) => {
const { username, theme } = req.query;
const { username, theme="default" } = req.query;
try {
let tokenIndex = 0;
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion api/cards/repos-per-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { changToNextGitHubToken } = require('../utils/github-token-updater');
const { getErrorMsgCard } = require('../utils/error-card');

module.exports = async (req, res) => {
const { username, theme } = req.query;
const { username, theme="default" } = req.query;
try {
let tokenIndex = 0;
while (true) {
Expand Down
2 changes: 1 addition & 1 deletion api/cards/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { changToNextGitHubToken } = require('../utils/github-token-updater');
const { getErrorMsgCard } = require('../utils/error-card');

module.exports = async (req, res) => {
const { username, theme } = req.query;
const { username, theme="default" } = req.query;
try {
let tokenIndex = 0;
while (true) {
Expand Down

0 comments on commit 40850ba

Please sign in to comment.