Skip to content

Commit 0af7927

Browse files
committed
fix variable wording
1 parent b84e8d1 commit 0af7927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run/lib/firebase.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1501,12 +1501,12 @@ const updateWorkspaceSettings = async (userId, workspace, settings) => {
15011501
return newWorkspace.toJSON();
15021502
};
15031503

1504-
const resetWorkspace = async (userId, workspace, hourInterval) => {
1504+
const resetWorkspace = async (userId, workspace, dayInterval) => {
15051505
if (!userId || !String(workspace)) throw new Error('Missing parameter.');
15061506

15071507
const user = await User.findByAuthIdWithWorkspace(userId, String(workspace));
15081508
if (user && user.workspaces.length)
1509-
await user.workspaces[0].reset(hourInterval);
1509+
await user.workspaces[0].reset(dayInterval);
15101510
};
15111511

15121512
const getUserbyStripeCustomerId = async (stripeCustomerId) => {

0 commit comments

Comments
 (0)