fixup: rename version_commit to version_code
authorPaul Spooren <mail@aparcar.org>
Sun, 5 Apr 2020 21:42:36 +0000 (11:42 -1000)
committerPaul Spooren <mail@aparcar.org>
Sun, 5 Apr 2020 21:52:12 +0000 (11:52 -1000)
Since OpenWrt upstream 07449f692c the variable is called `version_code`
instead of `version_commit` as it is really not only a commit but a
combination of *number of commits* and commit hash.

Signed-off-by: Paul Spooren <mail@aparcar.org>
index.js

index b652815187c7d0e024e080c200ecdb30241844d2..cdd4d6f169038bb50ca3f4dc7c5519a9391cd047 100644 (file)
--- a/index.js
+++ b/index.js
@@ -82,7 +82,7 @@ function build_asa_request() {
           var download_url = config.asu_url + '/store/' + mobj.bin_dir;
           updateImages(
             mobj.version_number,
-            mobj.version_commit,
+            mobj.version_code,
             mobj.build_at,
             get_model_titles(mobj.titles),
             download_url, mobj, true