Skip to content

Commit

Permalink
chore: update for Wing 0.82.6 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr authored Aug 19, 2024
1 parent 9e8fa94 commit fcea726
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 28 deletions.
6 changes: 3 additions & 3 deletions main.w
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Util {
pub static inflight clamp(value: num, min: num, max: num): num {
if value < min {
return min;
} elif value > max {
} else if value > max {
return max;
}
return value;
Expand All @@ -43,7 +43,7 @@ class Store {
// { name: "Score", type: "N" },
],
hashKey: "Name",
) as "EntiresTable";
) as "EntriesTable";
}

pub inflight setEntry(entry: Entry) {
Expand Down Expand Up @@ -182,7 +182,7 @@ let foods = [

new cloud.OnDeploy(inflight () => {
for food in foods {
if !store.getEntry(food)? {
if store.getEntry(food) == nil {
store.setEntry(Entry {
name: food,
score: 1000 + math.floor(math.random() * 100) - 50, // 1000 +/- 50
Expand Down
Loading

0 comments on commit fcea726

Please sign in to comment.