@vryzel/file-next 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ export const actions = createServerActions({
|
|
|
45
45
|
fs,
|
|
46
46
|
writeThrough: createWriteThrough(fs, store),
|
|
47
47
|
getAuth: () => ({
|
|
48
|
-
tenantId: asTenantId("
|
|
48
|
+
tenantId: asTenantId("demo"),
|
|
49
49
|
userId: asUserId("user-1"),
|
|
50
50
|
}),
|
|
51
51
|
});
|
|
@@ -140,8 +140,8 @@ Missing config throws `FileSystemError` (not retryable).
|
|
|
140
140
|
### 6. Multi-tenant keys
|
|
141
141
|
|
|
142
142
|
```ts
|
|
143
|
-
const scoped = fs.forTenant("
|
|
144
|
-
// object keys are prefixed t/
|
|
143
|
+
const scoped = fs.forTenant("demo");
|
|
144
|
+
// object keys are prefixed t/demo/{nodeId} unless prefixTenantKeys: false
|
|
145
145
|
```
|
|
146
146
|
|
|
147
147
|
Every store method also takes `tenantId`. Do not take tenant from the request body.
|
package/package.json
CHANGED