This repository has been archived by the owner on Oct 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4142 from withspectrum/2.4.52
2.4.52
- Loading branch information
Showing
20 changed files
with
101 additions
and
145 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
api/migrations/20181027050052-remove-attachments-from-thread-model.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
exports.up = function(r, conn) { | ||
return Promise.all([ | ||
r | ||
.table('threads') | ||
.update({ | ||
attachments: r.literal(), | ||
}) | ||
.run(conn), | ||
]).catch(err => console.error(err)); | ||
}; | ||
exports.down = function(r, conn) { | ||
return Promise.resolve(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
// @flow | ||
/* | ||
Deprecated Oct 26 2018 by @brian | ||
*/ | ||
import type { DBThread } from 'shared/types'; | ||
|
||
export default ({ attachments }: DBThread) => | ||
attachments && | ||
attachments.map(attachment => { | ||
return { | ||
attachmentType: attachment.attachmentType, | ||
data: JSON.stringify(attachment.data), | ||
}; | ||
}); | ||
export default () => []; |
Oops, something went wrong.