Skip to content

Commit 2112c5e

Browse files
committed
Merge remote-tracking branch 'origin/projects-export-import' into projects-assignment-ui
2 parents 6770abf + 9abaecd commit 2112c5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/server/src/sdk/workspace/projects/backups

packages/server/src/sdk/workspace/projects/backups/imports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const readDirectoryRecursively = async (
187187
const validateProjectPackageBeforeExtraction = async (file: {
188188
path: string
189189
}) => {
190-
const archiveHeader = Buffer.alloc(2)
190+
const archiveHeader = new Uint8Array(2)
191191
const archiveFile = await fsp.open(file.path, "r")
192192
try {
193193
await archiveFile.read(archiveHeader, 0, archiveHeader.length, 0)

0 commit comments

Comments
 (0)