- Notifications
You must be signed in to change notification settings - Fork1k
Commit5b08f8b
authored
fix: change createWorkspace to use dbtime.Time (#19414)
The `createWorkspace` function was updated to use an injected Clock,which makes it possible to mock time in tests:https://github.com/coder/coder/pull/19264/files#diff-46f90baab52ea3ad914acbde30d656dbc8e46f5918d19bc056c445a1dc502482R1130For database operations, however, it is recommended to use `dbtime.Time`since it rounds to the microsecond, the smallest unit of precisionsupported by Postgres.1 parent1a601c3 commit5b08f8b
1 file changed
+1
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
636 | 636 |
| |
637 | 637 |
| |
638 | 638 |
| |
639 |
| - | |
| 639 | + | |
640 | 640 |
| |
641 | 641 |
| |
642 | 642 |
| |
|
0 commit comments
Comments
(0)