Skip to content

Commit 263cb58

Browse files
committed
開発中のものはデータを送らない
1 parent 1c9cb45 commit 263cb58

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/activityRecord.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ Post all records(except today)
4747
and remove all posted records
4848
*/
4949
export function postRecords (data) {
50+
if (process.env.BOOST_ENV === 'development') {
51+
console.log('post failed - on development')
52+
return
53+
}
5054
let records = getAllRecords()
5155
records = records.filter(record => {
5256
return !isSameDate(new Date(), record.date)

0 commit comments

Comments
 (0)