mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Fix cypress tests
This commit is contained in:
parent
32da8b2982
commit
e9bd969f0a
@ -109,10 +109,11 @@ const sanitizeRelationshipType = (relationshipType) => {
|
||||
}
|
||||
}
|
||||
|
||||
const localFileUpload = ({ createReadStream, destination }) => {
|
||||
const localFileUpload = ({ createReadStream, uniqueFilename }) => {
|
||||
const destination = `/uploads/${uniqueFilename}`
|
||||
return new Promise((resolve, reject) =>
|
||||
createReadStream()
|
||||
.pipe(createWriteStream(`public/uploads/${destination}`))
|
||||
.pipe(createWriteStream(`public${destination}`))
|
||||
.on('finish', () => resolve(destination))
|
||||
.on('error', reject),
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user