Skip to content

Commit

Permalink
feat: log error activity when no stationId
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
  • Loading branch information
bajtos committed Apr 18, 2024
1 parent ebaabfe commit 48e0310
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import Spark from './lib/spark.js'

if (!Zinnia.stationId) {
Zinnia.activity.error('Your Station version is outdated. Please upgrade it as soon as possible.')
}

const spark = new Spark()
await spark.run()

0 comments on commit 48e0310

Please sign in to comment.