Skip to content

Commit a7349ef

Browse files
committed
roms: Return new props in API.
1 parent 616fcfe commit a7349ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/roms/rom.serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class RomSerializer extends Serializer<RomDocument> {
5050

5151
protected _simple(ctx: Context, doc: RomDocument, opts: SerializerOptions): RomDocument {
5252
const rom = pick(doc, ['id', 'version', 'notes', 'languages']) as RomDocument;
53-
rom.rom_files = doc.rom_files.map((f: any) => pick(f, ['filename', 'bytes', 'crc', 'modified_at']));
53+
rom.rom_files = doc.rom_files.map((f: any) => pick(f, ['filename', 'bytes', 'crc', 'modified_at', 'type', 'system']));
5454

5555
// file
5656
if (this._populated(doc, '_file')) {

0 commit comments

Comments
 (0)