|
@@ -243,7 +243,11 @@ class CompilationModel extends BaseModel {
|
|
|
let data = [];
|
|
|
if (example) {
|
|
|
for (let projId of example) {
|
|
|
- if (projId && projId.trim() !== "") data.push(projId.trim());
|
|
|
+ if (/^[0-9]+$/.test(projId)) {
|
|
|
+ data.push(parseInt(projId));
|
|
|
+ } else if (projId) {
|
|
|
+ data.push(projId);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return await this.updateById(compilationId, { example: data });
|