document-drive 1.0.0-alpha.62 → 1.0.0-alpha.63
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/package.json +1 -1
- package/src/storage/prisma.ts +11 -9
package/package.json
CHANGED
package/src/storage/prisma.ts
CHANGED
|
@@ -25,14 +25,14 @@ import { DocumentDriveStorage, DocumentStorage, IDriveStorage } from './types';
|
|
|
25
25
|
|
|
26
26
|
type Transaction =
|
|
27
27
|
| Omit<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
PrismaClient<Prisma.PrismaClientOptions, never>,
|
|
29
|
+
| '$connect'
|
|
30
|
+
| '$disconnect'
|
|
31
|
+
| '$on'
|
|
32
|
+
| '$transaction'
|
|
33
|
+
| '$use'
|
|
34
|
+
| '$extends'
|
|
35
|
+
>
|
|
36
36
|
| ExtendedPrismaClient;
|
|
37
37
|
|
|
38
38
|
function storageToOperation(
|
|
@@ -390,7 +390,7 @@ export class PrismaStorage implements IDriveStorage {
|
|
|
390
390
|
ELSE NULL
|
|
391
391
|
END AS "resultingState"
|
|
392
392
|
FROM ranked_operations
|
|
393
|
-
WHERE "driveId" =
|
|
393
|
+
WHERE "driveId" = ${driveId} AND "documentId" = ${id}
|
|
394
394
|
ORDER BY scope, index;
|
|
395
395
|
`;
|
|
396
396
|
|
|
@@ -446,6 +446,8 @@ export class PrismaStorage implements IDriveStorage {
|
|
|
446
446
|
attachments: {}
|
|
447
447
|
};
|
|
448
448
|
|
|
449
|
+
|
|
450
|
+
|
|
449
451
|
return doc;
|
|
450
452
|
}
|
|
451
453
|
|