misskey icon indicating copy to clipboard operation
misskey copied to clipboard

pack を基本 packMany の配列でない時用の util 関数にする

Open rinsuki opened this issue 1 year ago • 0 comments

Summary

現状ほとんど pack が主で packMany は arr.map(x => this.pack(x)) のような形になっているが、これだとうっかり pack でDBにクエリをかけた瞬間 N+1 になるため、基本的に pack 側を x => this.packMany([x]).then(result => result[0]) のような形にしたい

rinsuki avatar Feb 27 '23 01:02 rinsuki