diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-29 12:34:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-29 12:34:39 +0900 |
| commit | 17d62b689df22af66486cb50e9de82d745b129ce (patch) | |
| tree | f6ffb958ffc34fcc4335c84d839a8fec6cf649b1 /src/models | |
| parent | wip (diff) | |
| download | misskey-17d62b689df22af66486cb50e9de82d745b129ce.tar.gz misskey-17d62b689df22af66486cb50e9de82d745b129ce.tar.bz2 misskey-17d62b689df22af66486cb50e9de82d745b129ce.zip | |
wip
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/repositories/clip.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/models/repositories/clip.ts b/src/models/repositories/clip.ts index 2830546528..11f743349f 100644 --- a/src/models/repositories/clip.ts +++ b/src/models/repositories/clip.ts @@ -24,6 +24,12 @@ export class ClipRepository extends Repository<Clip> { isPublic: clip.isPublic, }); } + + public packMany( + clips: Clip[], + ) { + return Promise.all(clips.map(x => this.pack(x))); + } } export const packedClipSchema = { |