Skip to content

Commit

Permalink
Bugfix. Await before logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Mar 18, 2022
1 parent b62620f commit a7a9de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let lamps: Lamp[];
// lights, so we use the Hue naming and wrap the underlying methods.
export const getLights = async (hue: Hue) => {
try {
const lights = await hue.getLamps();
const lights = hue.getLamps();
debug.extend("getLights")(`#AntRKF ${JSON.stringify(lights)}`);
return lights;
} catch (error) {
Expand Down

0 comments on commit a7a9de9

Please sign in to comment.