Skip to content

Commit

Permalink
Start counting from 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Jan 16, 2024
1 parent 45eb1bd commit c17638d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/graphql/mutations/addPokerTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const addPokerTemplate = {

const templateCount = allTemplates.length
const newTemplate = new PokerTemplate({
name: `*New Template #${templateCount}`,
name: `*New Template #${templateCount + 1}`,
teamId,
orgId,
mainCategory: 'estimation',
Expand Down
2 changes: 1 addition & 1 deletion packages/server/graphql/mutations/addReflectTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const addReflectTemplate = {
// RESOLUTION
const templateCount = allTemplates.length
const base = {
[`*New Template #${templateCount}`]: [
[`*New Template #${templateCount + 1}`]: [
{
question: 'New prompt',
description: '',
Expand Down

0 comments on commit c17638d

Please sign in to comment.