This commit is contained in:
parent
1bf12a9f76
commit
5dedae3f97
@ -320,6 +320,7 @@ func (i *Importer) processAsyncWorker(file io.Reader, jobID string, userID strin
|
||||
}
|
||||
batch = nil
|
||||
batchRows = nil
|
||||
i.JobQ.UpdateProgress(ctx, jobID, imported, skipped, errors)
|
||||
i.saveJobLogs(ctx, jobID, logs, imported, skipped, errors)
|
||||
}
|
||||
return nil
|
||||
|
||||
@ -889,3 +889,9 @@
|
||||
{"level":"info","ts":"2026-08-18T13:40:52.381+0700","caller":"middleware/auth.go:62","msg":"session_login : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIxOWZmMTA0YzE2NTIyYTIyNTJjYmFjYTI0ZCIsImlzcyI6ImNhcmdvLXBsYXRmb3JtIiwic3ViIjoiMTlmZjEwNGMxNjUyMmEyMjUyY2JhY2EyNGQiLCJleHAiOjE3ODcwMzc0NDIsImlhdCI6MTc4NzAzMzg0Mn0.P3GCXCe1Bn3HvJwvbjUbBjXkQqbgS9_-pplgA22x6dw"}
|
||||
{"level":"info","ts":"2026-08-18T13:40:52.846+0700","caller":"middleware/auth.go:90","msg":"Set Auth : {\"blocked\":false,\"blocked_notes\":null,\"citys_relation\":null,\"created_by\":null,\"created_on\":\"2026-08-11T20:30:48.554654Z\",\"districts_relation\":null,\"email\":\"gcx@gmail.com\",\"id\":\"19ff104c16522a2252cbaca24d\",\"is_active\":true,\"merchant_id\":\"19ff111bca6c2c382d9eb43b3c\",\"merchant_relation\":null,\"merchants_relation\":null,\"nick_name\":\"Administrator\",\"postal_codes_relation\":null,\"provinces_relation\":null,\"subdistricts_relation\":null,\"updated_by\":null,\"updated_on\":\"2026-08-11T20:30:48.554654Z\",\"users_role_id\":\"19fe814c5350d67814c3e6057c\",\"users_role_relation\":{\"created_by\":null,\"created_on\":\"2026-08-10T02:51:43.16495Z\",\"id\":\"19fe814c5350d67814c3e6057c\",\"merchant_id\":null,\"merchant_relation\":{\"active\":null,\"additional_information\":null,\"address\":null,\"city_id\":null,\"city_relation\":null,\"citys_relation\":null,\"created_by\":null,\"created_by_relation\":null,\"created_on\":null,\"district_id\":null,\"district_relation\":null,\"districts_relation\":null,\"email\":null,\"id\":\"\",\"modas_relation\":null,\"name\":null,\"package_types_relation\":null,\"postal_code\":null,\"postal_codes_relation\":null,\"province_id\":null,\"province_relation\":null,\"provinces_relation\":null,\"subdistrict_id\":null,\"subdistrict_relation\":null,\"subdistricts_relation\":null,\"telp\":null,\"updated_by\":null,\"updated_on\":null,\"users_roless_relation\":null,\"userss_relation\":null},\"name\":\"Administrator\",\"role_key\":\"ADM_MERCHANT\",\"updated_by\":null,\"updated_on\":\"2026-08-10T02:51:43.16495Z\",\"userss_relation\":null}}"}
|
||||
{"level":"info","ts":"2026-08-18T13:40:54.060+0700","caller":"handlers/handlers.go:67","msg":"Request Success","status":200,"method":"POST","path":"/master-data/provinces/import","query":"","ip":"127.0.0.1","latency":1.679503208,"user-agent":"Apidog/1.0.0 (https://apidog.com)"}
|
||||
{"level":"info","ts":"2026-08-18T14:20:42.767+0700","caller":"middleware/auth.go:62","msg":"session_login : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIxOWZmMTA0YzE2NTIyYTIyNTJjYmFjYTI0ZCIsImlzcyI6ImNhcmdvLXBsYXRmb3JtIiwic3ViIjoiMTlmZjEwNGMxNjUyMmEyMjUyY2JhY2EyNGQiLCJleHAiOjE3ODcwMzc0NDIsImlhdCI6MTc4NzAzMzg0Mn0.P3GCXCe1Bn3HvJwvbjUbBjXkQqbgS9_-pplgA22x6dw"}
|
||||
{"level":"warn","ts":"2026-08-18T14:20:43.073+0700","caller":"handlers/handlers.go:65","msg":"Client Error","status":401,"method":"GET","path":"/master-data/provinces/import/status/35105866-bf8e-4575-b2df-a0de79e4e0de","query":"","ip":"127.0.0.1","latency":0.308569,"user-agent":"Apidog/1.0.0 (https://apidog.com)"}
|
||||
{"level":"info","ts":"2026-08-18T14:20:49.973+0700","caller":"handlers/handlers.go:67","msg":"Request Success","status":200,"method":"POST","path":"/login","query":"","ip":"127.0.0.1","latency":2.313666542,"user-agent":"Apidog/1.0.0 (https://apidog.com)"}
|
||||
{"level":"info","ts":"2026-08-18T14:20:52.742+0700","caller":"middleware/auth.go:62","msg":"session_login : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiIxOWZmMTA0YzE2NTIyYTIyNTJjYmFjYTI0ZCIsImlzcyI6ImNhcmdvLXBsYXRmb3JtIiwic3ViIjoiMTlmZjEwNGMxNjUyMmEyMjUyY2JhY2EyNGQiLCJleHAiOjE3ODcwNDEwNTksImlhdCI6MTc4NzAzNzQ1OX0.YySp6YT6H0YXQg7XOSzwMvXYUzM15BTJAyNLtI8P3UI"}
|
||||
{"level":"info","ts":"2026-08-18T14:20:53.331+0700","caller":"middleware/auth.go:90","msg":"Set Auth : {\"blocked\":false,\"blocked_notes\":null,\"citys_relation\":null,\"created_by\":null,\"created_on\":\"2026-08-11T20:30:48.554654Z\",\"districts_relation\":null,\"email\":\"gcx@gmail.com\",\"id\":\"19ff104c16522a2252cbaca24d\",\"is_active\":true,\"merchant_id\":\"19ff111bca6c2c382d9eb43b3c\",\"merchant_relation\":null,\"merchants_relation\":null,\"nick_name\":\"Administrator\",\"postal_codes_relation\":null,\"provinces_relation\":null,\"subdistricts_relation\":null,\"updated_by\":null,\"updated_on\":\"2026-08-11T20:30:48.554654Z\",\"users_role_id\":\"19fe814c5350d67814c3e6057c\",\"users_role_relation\":{\"created_by\":null,\"created_on\":\"2026-08-10T02:51:43.16495Z\",\"id\":\"19fe814c5350d67814c3e6057c\",\"merchant_id\":null,\"merchant_relation\":{\"active\":null,\"additional_information\":null,\"address\":null,\"city_id\":null,\"city_relation\":null,\"citys_relation\":null,\"created_by\":null,\"created_by_relation\":null,\"created_on\":null,\"district_id\":null,\"district_relation\":null,\"districts_relation\":null,\"email\":null,\"id\":\"\",\"modas_relation\":null,\"name\":null,\"package_types_relation\":null,\"postal_code\":null,\"postal_codes_relation\":null,\"province_id\":null,\"province_relation\":null,\"provinces_relation\":null,\"subdistrict_id\":null,\"subdistrict_relation\":null,\"subdistricts_relation\":null,\"telp\":null,\"updated_by\":null,\"updated_on\":null,\"users_roless_relation\":null,\"userss_relation\":null},\"name\":\"Administrator\",\"role_key\":\"ADM_MERCHANT\",\"updated_by\":null,\"updated_on\":\"2026-08-10T02:51:43.16495Z\",\"userss_relation\":null}}"}
|
||||
{"level":"info","ts":"2026-08-18T14:21:04.385+0700","caller":"handlers/handlers.go:67","msg":"Request Success","status":200,"method":"GET","path":"/master-data/provinces/import/status/35105866-bf8e-4575-b2df-a0de79e4e0de","query":"","ip":"127.0.0.1","latency":11.643231917,"user-agent":"Apidog/1.0.0 (https://apidog.com)"}
|
||||
|
||||
@ -3562,3 +3562,5 @@
|
||||
{"level":"info","ts":"2026-08-18T13:40:53.760+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/internal/importers/province/importer.go:71","elapsed":0.110808333,"rows":1,"sql":"SELECT count(*) FROM \"province\" WHERE UPPER(name) = 'JAWA TENGAH'"}
|
||||
{"level":"info","ts":"2026-08-18T13:40:53.874+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/internal/importers/province/importer.go:71","elapsed":0.113226708,"rows":1,"sql":"SELECT count(*) FROM \"province\" WHERE UPPER(name) = 'JAWA TIMUR'"}
|
||||
{"level":"info","ts":"2026-08-18T13:40:54.060+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/pkg/importer/importer.go:368","elapsed":0.185293792,"rows":1,"sql":"INSERT INTO \"province\" (\"name\",\"created_by\",\"created_on\",\"updated_by\",\"updated_on\",\"merchant_id\") VALUES ('DKI Jakarta','19ff104c16522a2252cbaca24d','2026-08-18 13:40:52.85','19ff104c16522a2252cbaca24d','2026-08-18 13:40:52.85','19ff111bca6c2c382d9eb43b3c') RETURNING \"id\""}
|
||||
{"level":"info","ts":"2026-08-18T14:20:47.856+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/internal/usecases/auth.go:29","elapsed":0.071815875,"rows":1,"sql":"SELECT * FROM \"users_roles\" WHERE \"users_roles\".\"id\" = '19fe814c5350d67814c3e6057c'"}
|
||||
{"level":"info","ts":"2026-08-18T14:20:47.858+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/internal/usecases/auth.go:29","elapsed":0.187898958,"rows":1,"sql":"SELECT * FROM \"users\" WHERE email='gcx@gmail.com'"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user