Skip to content

Commit

Permalink
Merge pull request #315 from oslokommune/develop
Browse files Browse the repository at this point in the history
Release 2.6.1
  • Loading branch information
aulonm authored Nov 10, 2021
2 parents a642150 + f1568cd commit 1e611a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format

## [UNRELEASED]

## [2.6.1] 2021-11-10

### Fixed

- Small bug with the public api after the big rewrite of Cloud Functions to ES Modules

## [2.6.0] 2021-11-09

Last minor update before releasing our new design. New updates from now on will only be small bug fixes.
Expand Down
4 changes: 2 additions & 2 deletions functions/api/routes/kpi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import express from 'express';
import { getFirestore } from 'firebase-admin/firestore';
import { getFirestore, FieldValue } from 'firebase-admin/firestore';
import { body, param, matchedData } from 'express-validator';

const router = express.Router();
Expand Down Expand Up @@ -49,7 +49,7 @@ router.post('/:id', ...validate, async (req, res) => {
}

await ref.collection('progress').add({ value: Number.parseFloat(progress), timestamp: new Date() });
await ref.update({ error: admin.firestore.FieldValue.delete(), currentValue: progress, valid: true });
await ref.update({ error: FieldValue.delete(), currentValue: progress, valid: true });

res.send(`Updated KPI (${id}) with progress: ${progress}`);
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "okr-tracker",
"version": "2.6.0",
"version": "2.6.1",
"private": true,
"scripts": {
"dev": "firebase emulators:start --import=./mock_data & vite",
Expand Down

0 comments on commit 1e611a7

Please sign in to comment.