Offset reference id a little
This commit is contained in:
@ -22,7 +22,7 @@ export class Media {
|
|||||||
public addMedia(filePath: string): IMediaData {
|
public addMedia(filePath: string): IMediaData {
|
||||||
const key = path.basename(filePath);
|
const key = path.basename(filePath);
|
||||||
const imageData = {
|
const imageData = {
|
||||||
referenceId: this.map.values.length,
|
referenceId: this.map.values.length + 3,
|
||||||
stream: fs.createReadStream(filePath),
|
stream: fs.createReadStream(filePath),
|
||||||
path: filePath,
|
path: filePath,
|
||||||
fileName: key,
|
fileName: key,
|
||||||
|
Reference in New Issue
Block a user