feat: check quota correctly (#6561)

This commit is contained in:
darkskygit committed 2024-04-16 09:41:48 +00:00
1 parent 0ca8a23dd8
commit 1b0864eb60
26 files changed
+309 -95

No files matched your search

@@ -90,7 +90,7 @@ test('should be able to set user feature', async t => {
const f1 = await feature.getUserFeatures(u1.id);
t.is(f1.length, 0, 'should be empty');
await feature.addUserFeature(u1.id, FeatureType.EarlyAccess, 2, 'test');
await feature.addUserFeature(u1.id, FeatureType.EarlyAccess, 'test');
const f2 = await feature.getUserFeatures(u1.id);
t.is(f2.length, 1, 'should have 1 feature');