mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(server): initial user plan (#11687)
This commit is contained in:
@@ -50,7 +50,11 @@ export async function createDevUsers(models: Models) {
|
||||
});
|
||||
}
|
||||
for (const feature of features) {
|
||||
await models.userFeature.add(devUser.id, feature, name);
|
||||
if (feature.includes('plan')) {
|
||||
await models.userFeature.switchQuota(devUser.id, feature, name);
|
||||
} else {
|
||||
await models.userFeature.add(devUser.id, feature, name);
|
||||
}
|
||||
}
|
||||
if (workspaceFeatures) {
|
||||
for (const feature of workspaceFeatures) {
|
||||
|
||||
Reference in New Issue
Block a user